Locks And Lockpicking API

Mar 16, 2019
Locks And Lockpicking API
  • Events
    openMinigameEvent
    this event is called everytime the lockpick minigame opens
    Usage:

    Code (Java):
    @EventHandler
     
        public void onOpenMinigame(OpenMinigameEvent event) {
            //gets the player who is about to open the minigame
            Player player = event.getPlayer();
            //changes whice player is about to open the minigame. i don´t know what you will use it for but here it is
            event.setPlayer(player);

            //gets the tier of minigame whice is about to open.
            int tier = event.getTier();
         
            //gets the sequnze the bars need to be clicked in to open the lock
            ArrayList<Integer> Sequnze = event.getSequnze();
            //sets the sequnze the bars need to be clicked in to open the lock,
            //the sequnze must be the size of tier+2 if not unforseen things can happen
            event.setSequnze(Sequnze);
        }

  • Loading...
  • Loading...