[REQ] Creative Item Limits

Discussion in 'Archived: Plugin Requests' started by Chillax_Team, Dec 2, 2011.

  1. Offline

    Chillax_Team

    Name: Creative Item Limits
    Bukkit Version: 1597

    Description:
    When they are in Creative: They can not Drop, Pickup, Use Chest, Use Furnases, Use Crafting Table.

    When they change back to Survival it changes their inventory to their old survival inventory. So like they have two inventory. Creative one and Survival one.

    Node:
    Code:
    Creative.itemspawn.item-x
    Any Other Info on this tell me.

    Bump

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

    Ineentho

    I don't think there are any bukkit events that can block this :( Please tell me if I'm wrong
     
  3. Offline

    KingWar92

    I think you're right.
     
  4. Offline

    Chillax_Team

    Well that kinda sucks.
     
  5. Offline

    KingWar92

    Why block taking out of inventory ? Why don't just block getting into inventory ?
     
  6. Offline

    Technius

    InventoryChangeEvent
    InventoryClickEvent
    InventoryTransactionEvent

    Play around with those.

    if(event.getPlayer().hasPermission("someperm.someperm")return;
    if(event.getPlayer().getGameMode == GameMode.SURVIVAL) return;
    event.setCancelled(true);
    event.getPlayer().sendMessage("CHEATER!!!");
     
  7. Offline

    KingWar92

    Yeah, but he speaked about take them OUT, not about block all changes !
     
  8. Offline

    Chillax_Team

    Could you attempt to make a plugin like that? Like i wanna make sure only certain ranks can take out items and blocks.
    what? No. I meant not allow them to have it in their inventory.
     
  9. Offline

    Technius

    You could also limit what kinds of items they can take out by loading a list at the beginning and comparing item ids.
     
  10. Offline

    Chillax_Team

    Is this possible now? Sence there is a RB out.

    Bump.

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

    tomjw64

    What is the underlying problem that you are having? Since you aren't finding the answer like this, perhaps you could try to approach the problem another way.
     
  12. Offline

    KingWar92

    Why use creative mode if you can't use inventory ?
     
  13. Offline

    Rahazan

    None of the inventory events have been implemented yet. You would need Spout for this, and the clientside SpoutCraft too.
     
  14. Offline

    tomjw64

    Wait a second, doesn't worldguard block players from obtaining certain things in their inventories though, with the blacklist feature?
     
  15. Offline

    Chillax_Team

    Well, I want them to be able to obtain the item if they are in Survival.

    I got an Idea.
    When they are in Creative: They can not Drop, Pickup, Use Chest, Use Furnases, Use Crafting Table.

    When they change back to Survival it changes their inventory to their old survival inventory. So like they have two inventory. Creative one and Survival one.

    Im puting this in the topic.
     
  16. Offline

    tomjw64

    I have DEFINITELY seen this done before. But for some reason now I can't find it :(
     
  17. Offline

    Sgt_Tailor

    I will try take a look at this, I have done a NoDrop plugin today, might just add the NoPickup into it as well
     
  18. Offline

    Chillax_Team

  19. Offline

    Sgt_Tailor

    I added a nopickup function to my new plugin NoDrop on this bukkitdev page I will look into the multiple inventory and interaction with furnaces ect.
     

Share This Page