Just a quick question.

Discussion in 'Spigot Plugin Help' started by Mr_lonely132, Jul 4, 2018.

  1. So, I have a question. I have a quest that requires the player that accepts the quest to break 5 TNT. How would I make it to where they can only break the TNT when the quest is accepted? And the same for when they have to place it. Any suggestions or ideas will be very appreciated.
     
  2. What plugin is this for?
     
  3. You can make a BlockBreakEvent and in this event check if it's TNT,
    if it is, check some HashMap for the player/quest,
    If it doesn't add up, e.setCancelled(true);
     
  4. Quests, if i need to use another plugin i can, like world guard
     
  5. I dont code/script ;-;
     
  6. The easy way and the best way is to code a plugin or ask someone nicely if they mamby would make the plugin for you.
    Other wise it may be achieveble with an Quest Plugin, Permission Plugin, WorldGuard and then hope the Quest plugin check on placing events and break events and can run commands so you can make an quest for placing 5 tnt and when they accept the quest they get an WolrdGuard permission to break only tnt blocks and when done it gets removed again