Search results

  1. Machine Maker

    Question Server update

    There are experimental builds for 1.20.6 on the downloads page already. They are not considered stable yet, so make sure you take backups and understand that you cannot downgrade versions.
  2. Machine Maker

    Solved Material Visability

    Does Material#isItem do what you want? It returns true of the Material enum is an item type.
  3. Machine Maker

    Question Paper MC 1.20.6 doesn't work

    I mean something must be happening that you can post. Even if no log is being created, when you actually run the start script, something happens in your terminal. Post that
  4. Machine Maker

    Question Is there a way to translate command completions?

    The completions are just strings... I'm not sure if I've seen a plugin that tries to handled commands in multiple languages. You would have to add those translations based on the player's locale and then automatically handle that in the logic for handling your commands.
  5. Machine Maker

    Solved Can't use ItemMeta.displayName(component) with TranslatableComponent

    You are using the wrong TranslatableComponent, probably the deprecated one (which is a good clue it's not what you want). Use adventure's components via Component#translatable which returns and adventure TranslatableComponent. Note that server-side translations will not work with ItemMeta...
  6. Machine Maker

    Question ConcurrentModificationException on ChunkGenerator

    Yeah, I'm not sure. I think the documentation on spigot does talk about logic in chunk gen needing to be thread-safe. But I'm not sure if it actually uses multiple threads. Either way, should be fixed as of build 383 for 1.20.4
  7. Machine Maker

    Question ConcurrentModificationException on ChunkGenerator

    Yeah, looks like a legit bug to me. The map that is used to convert between API enums (like PointedDripstone$Thickness) and their nms counterparts was just a regular HashMap so it's conceivable that this could happen. I've opened a PR that should resolve it.
  8. Machine Maker

    Question Can't roll back server version

    Neither vanilla nor paper support downgrading. There is a whole process for converting chunks, entities, player data, everything to newer versions that is only written in one direction. Which is why you can't just go back to an older version, the game could be expecting data to be structured one...
  9. Machine Maker

    Question fix-curing-zombie-villager-discount-exploit has no effect

    That setting was available pre-1.20.2 on paper. It isn’t there anymore
  10. Machine Maker

    Question How do I disable fix-curing-zombie-villager-discount-exploit?

    Mojang fixed that bug in 1.20.2. We removed the option.
  11. Machine Maker

    Solved Importing NMS in a Maven project using IntelliJ Idea

    The link in the previous post shows you mappings so you can translate the type/method/field names.
  12. Machine Maker

    Solved NoSuchMethodError with world.spawn() Paper 1.20.1

    The best way to fix this is to just update. 1.20.1 is not supported. Are you using a plugin.yml or paper-plugin.yml? The cause of this issue is probably that you are using paper-plugin.yml which does not include any bytecode remap fixes (on purpose). Upstream changed the type from...
  13. Machine Maker

    java.lang.NullPointerException: Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return va

    You do not register commands in the paper-plugin.yml. You must handle command registration yourself by adding a class that extends command and adding it to the command map. Future API will be added to better handle command registration for plugins using the Paper Plugin system. Feel free to...
  14. Machine Maker

    block.getDestroySpeed always returns 1.0

    The player's active item is not the item currently in their main hand. You want player.getInventory().getItemInMainHand(). Also, that will only return > 1.0 if the item is a tool of some sort, shovel, axe, hoe, sword, shears, or pickaxe as those are the only items that affect the breaking speed...
  15. Machine Maker

    Method for setting time?

    The time command sets or mutates the fulltime which is the "day" time or the time used to calculate the sky progress/moon, etc. It is also the time that is frozen if the daylight cycle gamerule is set to false. EDIT: actually it looks like setTime also calls setFullTime behind the scenes with...
  16. Machine Maker

    Question fix-curing-zombie-villager-discount-exploit has no effect

    Mojang fixed that bug in 1.20.2. That setting no longer has any effect. You can only get a discount from 1 zombie conversion.
  17. Machine Maker

    Solved Save an entity as a string and create a new one from it

    There is API to serialize an entity to a byte[] which is then not human-readable. If you don't care about that, you can use that API in UnsafeValues. I don't recall exactly what it serializes, so if it includes passengers or not.
  18. Machine Maker

    Question Best way to ensure my plugin commands take priority? (FAWE + WG Issue)

    I think that's the impropper way to define an empty list in YAML. that looks like a list of size 1 with the contents []. You probably just want to put the [] after the key directly. The "unknown" command is probably it trying to run the command /[] which would be unknown.
  19. Machine Maker

    Solved EntityDeathEvent not being fired

    set/isPersistent do not do what you think they do. It is about saving the entity to disk, not whether they despawn. The other method you found, setRemoveWhenFarAway is the correct way to control that.
  20. Machine Maker

    Question Item Sorter not working

    You are going to have to be more specific. The item sorting method with hoppers+comparators works just fine.
  21. Machine Maker

    Solved config cant be found

    Check to make sure the config.yml file is in the jar file. You can just unzip the jar and see for yourself. If it isn't, you probably need to configure maven to copy it over.
  22. Machine Maker

    Solved ignore-vanilla-permissions in commands.yml

    That’s because the default permissions in Bukkit also have defaults. The correct ones default to true on players that are opped. So changing that setting shouldn’t have any difference. Here is a scenario that shows its use. Op a player (with level 4). Remove the Bukkit permission for the stop...
  23. Machine Maker

    Solved ignore-vanilla-permissions in commands.yml

    So vanilla doesn’t have the same permission system that Bukkit does. Vanilla has op levels, 0-4. What this setting does is ignore those op level requirements for any command that has them, basically making the Bukkit permission system the sole arbiter of who has what permission.
  24. Machine Maker

    Suggestion (World) Get Entity by ID (integer one)

    If this is some packet-related thing, protocol lib has helper methods for doing that. Not sure if we want to add more API surrounding the numerical entity ID. It really isn't a good way of identifying an entity.
  25. Machine Maker

    How Xray was added to the Nether

    Take a look at the documentation for how to configure anti-xray. It describes how to enable it for multiple worlds.
  26. Machine Maker

    Solved How to customize the tablist on Paper api 1.21 ?

    Paper has all of the Spigot/Bukkit API. There should be no types on spigot that also aren't present in Paper. Can you give an example of what you are talking about?
  27. Machine Maker

    Solved How to use getConfig() not from the main class? (event listeners classes)

    While that does work, it really violates a core concept about object-oriented programming. Using static to store state like that can lead to issues if someone uses the unsupported reload command. It's highly recommended to stick to using objects as the language intended and pass state around...
  28. Machine Maker

    Question Why does the name of the arguments in the method not match when inheriting the CommandExecutor interface?

    Paper provides an example of declaring a dependency on its API for both maven and gradle which can be found here.