You can't access variables in a method from outside that method. What you can do is make the command method return a LiteralCommandNode<CommandSourceStack> and then call coolcommand.command() in your onEnable method.
With Java, K&R style (opening brace on the same line) is generally the most commonly used. If you don't care which style you use, I'd recommend sticking with that one, since other Java programmers will be more familiar with it.
We understand your concerns that some of the plugins you're currently using might no longer work on Paper in the future because the developers will only support Spigot. However, we know of many plugins that will either keep supporting both Spigot and Paper or outright only support Paper in the...
I don't think there's much of a standard here. For local file storage, JSON is pretty common, some people use HOCON and a lot of people (ab)use YAML. For databases it's pretty much standad to use something SQL, like MySQL or PostgreSQL, with SQLite for local databases.
I think for this you could keep track of the inventory state for each player. Let's assume that you have for each player a state I, which indicates the state of the inventory for each player. This should be written to some kind of permanent storage, otherwise this data is completely gone when...
I think these issues can be resolved if you reset the player's inventory to their original one when they leave the server or the server stops. Additionally, when a player joins the server, you can check if they're about to join in the custom world and set their inventory to the independent one...
In the server.properties file, you can find the simulation-distance and view-distance settings. These determine the chunk tick radius and the view distance respectively.
Anti-cheat plugins can go a long way in detecting people cheating and banning them. Next to that, staff can look out for people cheating and get rid of the people who manage to get past the anti-cheat.
I don't see how allowing cheats on a server would work, it seems to me it would completely...
You can specify startup parameters to change the plugins directory with the -P parameter and the world directory with -W. For example:
java -jar paper.jar -P custom_plugins -W custom_worlds
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.