Recent content by AggerTV

  1. A

    Question Chaining completablefutures together

    Hello, I am making a guard plugin, and I need to know if I am using completablefutures in the most efficient way / the correct way. The following code is from a command which fires guards, it handles both online and offline players. The tricky bit is when the player is offline, because it...
  2. A

    Solved on sign click

    Nvm, I just read about this https://docs.papermc.io/paper/dev/pdc#itemmeta which I think is what I need
  3. A

    Solved on sign click

    Hello, I am making a guard plugin, and I want to open a gui if a guard clicks on a designated guard sign. The current way I am doing it public class SignClickListener implements Listener { private final IGuardMainMenu guardMainMenu; @Inject public SignClickListener(IGuardMainMenu...
  4. A

    Solved Add ntb tags only to items from kit

    That did the trick, thank you :)
  5. A

    Solved Add ntb tags only to items from kit

    Yeah that makes sense, but I just can't figure out how to get the items from the kit. The javadocs doesn't really say that much, all I could find was a getItems method which doesn't return any items, rarther a map containing strings with the items information (javadocs), see this example of...
  6. A

    Solved (instance issues) Unable to verify if a players open inventory is custom

    If you in the future want to start using libraries, e.g. for working with guis, I can highly suggest this library by Stefvanschie https://github.com/stefvanschie/IF/ It makes working with guis a lot easier, in my opinion :)
  7. A

    Solved Add ntb tags only to items from kit

    Hello! I am making a guard plugin for my server, and I need a way for when a guard obtains a kit, they are linked to the items from the kit, so that they cannot abuse by giving away their items. So, this is what I've come up with @Override public void giveGuardKit(Player player, String...