Fabricio20 / HubBasics

Bukkit Plugin For Hub Owners

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/hat allows players to obtain any item they wish

dwilson390 opened this issue · comments

Currently, you can obtain any item you wish through /hat and as it stands there is no way to disable the hat command; since I have this plugin on my survival server to provide a /hub command, this is a major issue.

If possible, could you make it one of the following;

You cannot remove your hat from the helmet inventory slot.
You can only make your hat what you are holding in your hand.
If neither are possible, the ability to disable the hat feature altogether.

There is a way to disable that feature, deny them the permission to the command.


From: Dylan Wilson notifications@github.com
Sent: Tuesday, October 4, 2016 2:43 PM
To: Fabricio20/HubBasics
Subject: [Fabricio20/HubBasics] /hat allows players to obtain any item they wish (#60)

Currently, you can obtain any item you wish through /hat and as it stands there is no way to disable the hat command; since I have this plugin on my survival server to provide a /hub command, this is a major issue.

If possible, could you make it one of the following;

You cannot remove your hat from the helmet inventory slot.
You can only make your hat what you are holding in your hand.
If neither are possible, the ability to disable the hat feature altogether.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/60, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHMjeG02pQZ2cCk2TNrfnTqZK_47_Vpyks5qwp5ugaJpZM4KOBMz.

You can also block the hat command with worldguard, if you have it.

Just do /rg flag global blocked-cmds hat,OTHERCMD,OTHERCMD2
You don't need the extra cmds, but those are there incase you want to block other cmds.

That's what I've been doing, I've removed permissions to the command but as I already said, I want to have a hat command; which this plugin does not allow - it takes over the hat command, disabling Essentials hat command, and opening this exploit.

commented

This will be fixed in the next commit from my side, but I don't want to commit it right now because it breaks the download link and we don't really want that, do we now? :)

Also; Essentials' hat command should have /ehat as an alias?

EDIT: I just fixed this with no visual changes, and now it will just remove the hat if you attempt to click it. It has NOT been pushed which means you will have to wait until the next update, I hope you can understand why (Explained in original comment above).

If you're concerned about HubBasics overriding the essentials hat command, then you can add 'hat' in commands.yml as an alias of /ehat. Like LorgeN said, essentials should have /ehat as an alias to /hat.

Example commands.yml

Commands.yml will override all other commands and should work.