NoCompassDrop
NoCompassDrop
NoCompassDrop or NCD
NoCompassDrop or NCD is a plugin that will deny players to dropping or moving a compass around in there inventory.
when they try to drop it, it will pop back in there inventory and if they try to move it around in their inventory it will also pop back to the slot it was in. Just give the player a compass and he will have it on him at all time. You can also set what slot in the hotbar you want the compass to be. if you have set the CompassOnLOgin to true it will give the player a compass i that selected slot and same for the /gcompass command.
Commands
If you want to give a player a compass
/gcompass <PlayerName>
Permissions
permission.givecompass - this allow a player to give other players a compass using the /gcompass comand, Op have this permission on defult
Config
- In the config you can set the CompassOnSpawn to ture or false. If you set it as true it will give all players a compass when thay log in if thay don't allready have one. If you set it as false it will not do anythin As defult its true
- If you want the compass to be in a selected slot at all time you can set the hotbar slot you want in the config . Just set a nr. from 0-8 (depends on what slot you want it to be) in the config where it say HotbarSlot: Defult is set to 0 (thats hotbar slot nr.1)
Working on
- Adding config to change items
Adding a config where you can select what hotbar slot you want the compass to be on at all time.The compass will go to the selected slot when you type /gcompass <player>The compass will go to the selected stot when a player logs on and the CompassOnLogin if set as true.
If you have any sugestions to what i should add or finde and bugs just tell me :)
If you like my work, please consider donating :)
@KrustyLv
Oh that would be cool :)
Is there is a way that compass cannot be dropped after death? still in inventory?
doesnt give players a compass?? am I missing something..
@dotapurex1
That would be awesome
+1
Nice, can i can use it with chestcommand?
@rophile1er
@forresthopkinsa
@iM3shyS
fixed now :)
I can back what @rophile1er said. It doesn't work with Spigot!
@rophile1er
I second that.
does not work with Spigot
[Server thread/ERROR]: Could not pass event InventoryCreativeEvent to NCD v1.4 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) [spigot_1.7.jar:git-Spigot-1207] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot_1.7.jar:git-Spigot-1207] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) [spigot_1.7.jar:git-Spigot-1207] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) [spigot_1.7.jar:git-Spigot-1207] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1491) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.PacketPlayInSetCreativeSlot.a(SourceFile:23) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.PacketPlayInSetCreativeSlot.handle(SourceFile:9) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:657) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:259) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:540) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:446) [spigot_1.7.jar:git-Spigot-1207] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot_1.7.jar:git-Spigot-1207] Caused by: java.lang.NullPointerException at me.fred12i12i.NCD.MyPlayerListener.onClickInventory(MyPlayerListener.java:18) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_17] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_17] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_17] at java.lang.reflect.Method.invoke(Method.java:601) [?:1.7.0_17] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) [spigot_1.7.jar:git-Spigot-1207] ... 14 more
Can you make is so that we're able to add our own custom text for the compass like:
http://puu.sh/62V3Z
@deancohen1994
@MinecraftRiftwalker
it's already in the working on list ;)
@deancohen1994
I would love this as well... :)
could you possible add a feature to change what item it works for, so i can set it to be a book for example? thanks
Thanks, Look forward to seeing the next update!
@BrutalNetwork
Thanks for the suggestions, im working on them right now :)
Hey, Great plugin! Gonna be on my new hubs server :) i have a few suggestion if you could take into consideration:
1) Exempt ops (so ops can move them compass in their inv) 2) Make it so you can have multiple items! ( so like a book and stuff) 3)Make it so you can name the items
Keep up the good work! Thanks!
I look forward to see when you allow the static item to be changed from compass. :)
@patrickboesch
Next update ;)
Is it possible to disable the "you have a compass!"-Message ?
I use the Plugin for my Server... can i be tester? Server: Ger-AllinOne.de Skype: robinracer99