ajneb97 / servervariables Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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 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
The ServerVariables placeholder returns an empty string when trying to use "globalvalue_" placeholder argument, the if statement should be moved inside this else if statement since this is the only placeholder argument that requires a player.
Edit: typos and wrong url line.
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.
Hello, Could it be possible that the plugin can support Bungeecord/Waterfall or Velocity?
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
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
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:
This happened to me before, and the only way to fix it, is to delete all player data and restart it again.
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:
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.
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
I suggest that you can use quotes (") even if there are no spaces in the variable, it would be much more optimal to not have to add extra conditions/checks when assigning the value
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>%
I suggest Redis as the means of server syncing for ServerVariables because this would allow people to sync between servers more accurately.
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.
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.
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.
Since min_value was added to integer variables, could we perhaps have a max_value too? :)
Placeholders are currently on for online players, would be cool to be able to parse offline as well.
Hello, it would be good to set up a new command which allows you to create a variable specific.
Is this possible for a future update?
/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
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.
A request a new method that we could use: 'getOldValue()', so it will return the value that a variable had before it was changed.
This could be so useful for some events for your plugin: conditionalevents
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.