Creative mode manager

Discussion in 'Archived: Plugin Requests' started by MarkehMe, Dec 13, 2011.

  1. Offline

    MarkehMe

    Any idea if it' possible to remove items from the Creative Mode list and disallow the placing of them?

    I also want to stop people from breaking the bottom layer of bedrock.
     
  2. Offline

    user_90597071

    No, but an easy way to do this would just be to ban items from being placed, using a plugin such as WorldGuard (http://forums.bukkit.org/threads/se...dvanced-fast-area-protect-blacklist-1185.790/) would be a good solution.

    Note: You need to have WorldEdit (http://forums.bukkit.org/threads/edit-sec-admn-worldedit-5-0-world-editing-de-griefing-1-0-1-r1.62/) installed on your server in order to use WorldGuard.

    As for breaking the bottom layer of bedrock - WorldGuard is your friend. You can build-protect the bottom layer.
     
  3. Offline

    MarkehMe

    Interesting, thanks for the help. Would be cool still, if you could remove items from the E menu.
     
  4. Offline

    -_Husky_-

    I believe creative goes through any protection.....
     
  5. Offline

    user_90597071

    I don't know this for sure, but you'd think that plugins would override creative mode in some ways.
     
  6. Offline

    dkabot

    Creative instabreak can be bypassed and many plugins do so.
    I recall you can easily disallow block placement and there is a boolean for if the player is creative, so.... (off the top of my head code incoming)
    Code:
    public void onBlockPlace(BlockPlaceEvent event) {
        if(event.isCancelled()) return;
        else if(!player.hasCreative) return;
        else {
            //Code to get config for blocked items here
            if(/* Code to grab blocked item */ == event.getBlock()) {
                event.setCancelled(true);
            }
        }
    }
     

Share This Page