Inactive [MECH/FUN] SimpleHat 0.7 - Just hats [Bukkit Permissions] [1060]

Discussion in 'Inactive/Unsupported Plugins' started by ichingpow, Jul 6, 2011.

  1. Offline

    ichingpow

    Last edited by a moderator: May 17, 2016
    andrewkm and Kane like this.
  2. Offline

    M1sT3rM4n

    So all of the MC items ID work? Also, can't people use this to generate items just like with /i or /give? Do you have a way to prevent that from happening?
     
  3. Offline

    ichingpow

    Yes but non-blocks won't show on your head. It's not a item giving, the entire point is not to have that. It takes what is currently in your hand and puts it in your head armour slot.

    Please try it ;)
     
  4. Offline

    M1sT3rM4n

    That makes sense. For example, I thought you can just type /hat <item id> and wear them.
     
  5. Offline

    ichingpow

    No, you can't.
     
  6. Offline

    CushFiles

    Awesome! Just checking, it's just for show-off right? no armor will be added etc.
    We've got some donators on the server who we'd like to give some "show-off" features, so this is great! :D
     
    Delois likes this.
  7. Offline

    paully104

    i do /hat and i receive an internal error occured while attempting to perform this command.
    Show Spoiler
    2011-07-06 09:56:28 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'hat' in plugin SimpleHat v0.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at ichingpow.SimpleHat.SimpleHat.onCommand(SimpleHat.java:56)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  8. Offline

    ichingpow

  9. he doesn't. add a boolean usePermissions = false. then onEnable do if(this.getServer().getPlugin("Permissions") != null){
    //assign to permissions handler and set usePermissions = true
    }
    else{
    usePermissions =false;
    Then before you check if a user has permissions, check if usePermissions is true. so basically it will look like
    if usePermissions == true
    if playerHasPermission == true
    //do it
    else
    //do it
    Sorry if that was a kinda bad example, im tired :D
     
  10. Offline

    ichingpow

    Added optional Permissions thanks to garbagemule!
     
    garbagemule likes this.
  11. Offline

    paully104

    Testing it now ^.^
     
  12. Offline

    rolandostar

    Having a locked chest as a hat lolz! thank you 4 this plugin
     
  13. Offline

    ichingpow

    Updated to 0.3! Check the change log. Thanks @garbagemule
     
    garbagemule likes this.
  14. Offline

    madcrazydrumma

    Hmm this looks good... could you make a config file so that users can choose what blocks should be allowed like it should be layed out like this:
    EDIT: and possibly have multiworld support? so in that config file you could also add this option:

    Just ideas that would be excellent :D
     
  15. Offline

    ichingpow

    Use Permissions multiworld system to enable and disable the command in certain worlds. I'm not interested in adding a config file as that defies the point but thank you for your suggestion.
     
  16. Offline

    captainawesome7

    Just saying, all of these:
    make absolutely no sense. Permissions is multi-world, and this plugin is command based, so why would you need multiworld options? Blacklist blocks doesn't make sense either, because you have to have the item in your hand, it doesn't give you the item. Allow Hats is probably the dumbest option in a config file I've ever heard of, why would you want to disallow hats if you downloaded this plugin?
    @ichingpow Love the plugin, keep up the good work :)
     
  17. Offline

    ichingpow

    Thanks man, love your plugins too and keep up your good work.
     
  18. Offline

    ichingpow

    Updated, check changelog. :D
     
  19. Offline

    Zippo

    When I say /hat, it wont work. It come up with white text saying /hat
     
  20. Offline

    ichingpow

    Hmm, that's weird. Can you look in the console to see if there are any errors?
     
  21. Offline

    Zippo

    There is no error
     
  22. Offline

    Kaikz

    It means you don't have permissions or the Permissions plugin itself is null (not loaded), as the plugin doesn't do anything but return false if you don't have permission.
     
  23. Offline

    Zippo

    I have group manager installed
     
  24. Offline

    Kaikz

    Then you'll need FakePermissions.
     
  25. Offline

    Zippo

    Where can I get that
     
  26. Offline

    Zippo

    Help?
     
  27. Offline

    ichingpow

    From http://google.com/ or grow some balls and use the real Permissions.
     
  28. Offline

    Zippo

    I do use real permissions now, problem still happenes
     
  29. Offline

    yuckfoooo

    Help, I went to http://google.com/ and all I got was google's search site! What do?

    Seriously though, I'll try this out. Looks fun. Not sure what I'd want to put on my head... Maybe a piston or a block of fire :eek:
     
  30. Offline

    rolandostar

    Can you add config to allow only some blocks to be placed in the Hat slot?
    And multiworld :D
     

Share This Page