Solved RPG Plugin help?

Discussion in 'Plugin Development' started by xDGaming, Oct 26, 2013.

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

    xDGaming

    I'm building a RPG Plugin, and I want to add a kit like /rpg kit and it gives you the RPG kit, but I only want it to work in the RPG worlds and I don't know how to make it only work in specific worlds any help?
     
  2. Offline

    adam753

    To check if the player is in a specific world:
    Code:
    if(player.getWorld().getName().equals("MyRPGWorld")) {
    }
    Of course, just writing an absolute world name in the code isn't very user-friendly, so you should probably put an option in the config and check it against that instead.
     
    xDGaming likes this.
  3. Offline

    xDGaming

    well, its specifically for my server, but i will add it in the config :D Thank you :3
     
Thread Status:
Not open for further replies.

Share This Page