[HELP] Minecraft Disable Commands

Discussion in 'Plugin Development' started by tryfme, Feb 16, 2014.

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


    Hello bukkit members :)!I am making a new minigame for bukkit.Please help me to disable all comands except /minigame leave and /minigame vote.The player data is saving in config.yml.Please help me to make a check if the player is in the data, then disable all commands.
  2. Offline


    Install PermissionsEX and set the only permission nodes that the group default has to the nodes of '/minigame leave' and '/mingame vote'. To do the second part, make a group of the people in the config.yml and have this apply to them.
  3. Offline


    Im fine with the permissions dude.I can't make it when the players joined the minigame(and automaticly join the config.yml) to disable all commands except /minigame join and /minigame leave.
  4. Offline


    Are you asking for a plugin that disables commands, or for someone to write the code to do this?
  5. Offline


    Im asking for code.I tried a lot ways to do it, but nothing happened.

    When the player joined, he will automatticly joined to HashMap(now im trying with this ..).But again this script does not work, please Help ^^.

    public void onPlayerCommandBlock(PlayerCommandPreprocessEvent e) {
    if (players.containsKey(e.getPlayer().getName())) {
    if (!e.getMessage().contains("leave")) {
    e.getPlayer().sendMessage("You can not use commands while ingame!");

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 6, 2016
  6. Offline


    Moved to plugin reqs.
  7. Offline


    Reqs or dev?
Thread Status:
Not open for further replies.

Share This Page