Code Monkey home page Code Monkey logo

servervariables's Introduction

servervariables's People

Contributors

ajneb97 avatar

Stargazers

 avatar  avatar Qekly avatar Sliide_ avatar Jonathan Narvaez avatar

Watchers

 avatar

servervariables's Issues

Error placeholder

Ay un problema con el placeholder y es que no puedo obtener el valor de la variable de un jugador en específico, estaría muy bien que lo agregaras o una forma de poder obtener la información

add support create permission variable

add the possibility of being able to create a variable and put that if it has a certain permission has another value, it would also be necessary to add that in the command /svar set you can edit the value without permission or the value with permission and in both options both edit the value without permission and permission add if you want it to be to all including offline

example I create the variable type player text if you don't have the permission example.variable you see the text example but if you have it you see the text example permission

[Feature request] Timed Variables

Hello.
Can you support timed variables ? Convert variable back to initial_value after Second/Minute/Hour/Day/Month/Year is pass ?

Thanks for the plugin. It's really useful.

[Feature Request] More Objects

Hello, currently thinking of migrating my own variable system to this plugin. But I am missing one feature, which would be a total game changer. For now we can only apply variables to 2 different "objects" - Server & Player.

Server variables are global, player ones are linked to chosen player. This will be enough for most users, but to let this plugin achieve it's fullest potential it would be great to add more "objects", which could be linked to players, blocks, or nothing at all...

Right now we can theoretically just use the server type variables to achieve basically anything. But it would be very tedious, if we had to set 4 variables for.. let's say specific block and we had 300 of those blocks. That's 1200 variables we would have to configure. That's what custom objects would make a lot easier.

First we would have to specify the object name, for example: Furnace, which would link to a certain block in world (could be done with ConditionalEvents's BLOCK_PLACE event.). To make things consistent... every object creation would be saved in ServerVariables/objects/<objectName>/<world>-<posX>-<posY>-<posZ>.yml file or possibly in MySQL.
And after that, we would have specified the variable structure for our Furnace object, let's say it would be:

variables:
  slot1Material:
    variable_type: OBJECT
    value_type: TEXT
    initial_value: "empty"
  slot1Count:
    variable_type: OBJECT
    value_type: INT
    initial_value: 0
#...more variables...

And now with proper configuration in ConditionalEvents we will create a new object for every placed Furnace block. Interacting with it would open Custom GUI filled with data from our object's variables.

This feature will definitely add a lot of possibilites (if added obviously). Feel free to ask about the implementation, but I believe you already understand what this would achieve.

Cheers,
Michal

Advice on max_value

When I add a value greater than the set maximum value
For example, the maximum value is 80
If 79+2 then he will prompt that the maximum value is 80
I hope that when the maximum value is exceeded, it will be set directly to the maximum value

Error after crash

Today my server has crashed with around 100 players in it, after starting up again, it looks like none of the servervariables work for some players and it shows the following error:

https://pastebin.com/tavUHu4R

This happened to me before, and the only way to fix it, is to delete all player data and restart it again.

Data Saving sometimes innacurate

Some time ago I started having players report some issues to me related to ServerVariables values. I use it for specific display of collections and other things, and it seems that if the server stops with a lot of players, or it lags, and they rejoin in the same instance, the values does not get added correctly. I currently have my data saving time set to 10. But the only logical situation I see happening, is that if the server restarts too quickly and it has no time to save the data.

I'm attaching the config file here without the variables:

https://pastebin.com/3aH1NGBF

Playername and UUID problem

Hello.
I test the plugin with MMOProfiles Proxy mode. In this plugin every profile will have different uuid and uuid are really change after the profile selected.

Problem with ServerVariables is when adding svar to player targeting wrong uuid. This is not a bug of this plugin I'm not asking to fix.

I'm only asking small feature; use uuid instead of playername with everywhere in the plugin. We can use MMOProfiles %mmoprofiles_current_profile_uuid% instead of player name to fix for us.

Thank you.

_ characters in placeholders in nicknames break placeholders

Hello, I need support for ServerVariables plugin, seems that placeholder for other player doesn't work. I'm using this placeholder;
%servervariables_value_otherplayer_Sky_TnT_random_tp%

as an example where Sky_TnT is my minecraft nickname and random_tp is the name of variable

for example this placeholder;
%servervariables_display_random_tp% works fine

but the other one not, also display doesn't work

[bug] Can't get player variable

When I try to get a player variable by using the /svar get command or the placeholders, I get this error in my console. Is it an error on my side, or is it a plugin error?

image

Added placeholders (Get value player)

It's missing a couple of important placeholders since they're only there to get the value of the player's variable, but how do I get the value of another player's variable? Add the following option

%servervariables_value_<key>_<player>%
%servervariables_valuedisplay_<key>_<player>%

Possible values ​​bug

I have added variables with possible values ​​that are "yes" and "no", previously I had them as "true" and "false" but I changed them, saved, reloaded the plugin and restarted until I deleted the plugin and folder I put the variables back in and it's still the same

Screenshot_2023-11-25-20-41-47-81_5c8300b655012b1930f2e0a7b81bf6a9
Screenshot_2023-11-25-20-42-59-00_40deb401b9ffe8e1df2f1cc5ba480b12

MySQL is not made for server syncing.

I suggest Redis as the means of server syncing for ServerVariables because this would allow people to sync between servers more accurately.

image
Set Variable on Server A

image
Went to Server B to check variables result is wrong.

Both are connected to the same database.

And with a brief look on the code, There seems to be nothing to update that variable when player leaves/disconnect, hence that data is most likely not possible to be viewed from Server B.

[Bug Report] Console Warning

Hello! I recently updated to latest version of ServerVariables and today I noticed the following error in console: https://pastebin.com/xrgfBejX

I am not sure what it's related to, but I don't have any problems other than that error popping up a few times a day.

Thank you.

(Suggestion) Adding Errors to Debug

For example, when you try to add a non-existent variable, or similar, it sends a message like PLAYER x TRIED TO ADD x TO x.

For example if it's an integer variable, and you do /svar set test 123, it sends the failed attempt and what actually was written. Would be helpful for people who have lots of variables and sometimes mess up things, so we can figure the route.

Suggestion - max_value

Since min_value was added to integer variables, could we perhaps have a max_value too? :)

/svar reset <variable> all doesn't work

/svar reset all doesn't work... try using the command see if it resets for all or just player named "all" its not working for me and resetting the data for player named "all" instead of everyone's data

Specified key was too long; max key length is 767 bytes

Un usuario en tu discord ha estado pidiendo ayuda sobre este error https://pastebin.com/raw/1VQRh1C8, el tiene que estar teniendo la base de datos configurada como utf8mb4 que en vez de usar 3 bytes como utf8 usa 4 bytes haciendo que el varchar maximo sea en vez de 255 191.

Si son UUID que siguen la normal general deberian de medir 36 caracteres y no 200, desconozco si el plugin internamente guarda otro valor que si pueda llegar a medir 200 caracteres, si no es el caso seria considerable que se cambiara ya que es una mala practica ya que podria ser una ligera sobre carga.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.