Disabling several things

Discussion in 'Plugin Development' started by Retrosize, May 2, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Retrosize

    As you can see from the title of the thread I wish to disable several things, the two things I wish to disable is firespread as well as set a 'region' that disables PvP, now I know I'm able to use Worldguard but I refuse to.
     
  2. Offline

    TGRHavoc

    Retrosize
    World.setGameRuleValue("doFireTick", false). That might work...
     
  3. Offline

    Retrosize

    TGRHavoc Eh, I don't exactly know what you mean by that, is that a worldguard command or? If so then I don't want to use WorldGuard. If it isn't then how exactly do I use that?
     
  4. Offline

    TGRHavoc

    Retrosize
    No, it isn't a world guard command. To do this you need to get the world that is being used. You can do this by having an event (e.g. Command) that has the player. Then you can do "player.getWorld().setGamRuleValue("doFireTicks", false);". What this does is it sets the gamerule "doFireTick" to false. This means that fire will no-longer spread in that world.
     
  5. Offline

    Necrodoom

    You posted in plugin development section, which is ment for plugin coding help. If you want general bukkit server help, then the correct section is bukkit help.
     
  6. Offline

    TGRHavoc

    Necrodoom
    I thought he was talking about development :confused:
     
  7. Offline

    Retrosize

    No, I don't want general plugin help. Reading the thread might help.
    Ah, but that doesn't do anything to player placed fire.
     
  8. Offline

    TGRHavoc

    Retrosize
    You could use a playerInteractEvent to check if they placed a fire, if they did then cancel the event..
     
Thread Status:
Not open for further replies.

Share This Page