Recent content by stefvanschie

  1. S

    Question Need Advice on Starting a Minecraft Server & Learning Java from Scratch

    There are many resources you can use to learn Java. The university of Helsinki has freely available courses on Java Programming, which you can find here https://www.mooc.fi/en/ (look for the courses Java Programming I and Java Programming II). Alternatively, you can also take a look at the book...
  2. S

    Question Skulker farming patched?

    I'm assuming you're referring to the mechanic where a shulker may spawn if it is hit by a shulker bullet? That is an intentional game mechanic, so this is not something that Paper removes. If you have plugins installed, however, these might change this behaviour. I'd suggest trying this on a...
  3. S

    Question Why do i get this

    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.
  4. S

    Question [Tag Plugin] Feedback

    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.
  5. S

    Announcement The future of Paper - Hard fork

    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...
  6. S

    Question Is there a standard for data saving and if so using what?

    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.
  7. S

    Solved How to make players have an independent inventory in specified world?

    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...
  8. S

    Solved How to make players have an independent inventory in specified world?

    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...
  9. S

    Question Paper with Fabric mod, or a similar plugin (read desc)

    Paper only supports plugins, Forge/Fabric mods are not supported.
  10. S

    Question Change the chunk ticking range.

    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.
  11. S

    Is it possible to defeat cheats?

    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...
  12. S

    Question Server won't fully start (Arch Linux)

    Java 23 is currently not supported. It's recommended to use Java 21 instead.
  13. S

    Question File Generation

    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