mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Do not allow tool bindings to the hand
This commit is contained in:
parent
5cf69f4972
commit
a6f7055c7b
@ -478,6 +478,8 @@ public class LocalSession {
|
|||||||
public void setTool(int item, Tool tool) throws InvalidToolBindException {
|
public void setTool(int item, Tool tool) throws InvalidToolBindException {
|
||||||
if (item > 0 && item < 255) {
|
if (item > 0 && item < 255) {
|
||||||
throw new InvalidToolBindException(item, "Blocks can't be used");
|
throw new InvalidToolBindException(item, "Blocks can't be used");
|
||||||
|
} else if (item == 0) {
|
||||||
|
throw new InvalidToolBindException(item, "Your hand can't be used");
|
||||||
} else if (item == config.wandItem) {
|
} else if (item == config.wandItem) {
|
||||||
throw new InvalidToolBindException(item, "Already used for the wand");
|
throw new InvalidToolBindException(item, "Already used for the wand");
|
||||||
} else if (item == config.navigationWand) {
|
} else if (item == config.navigationWand) {
|
||||||
|
Loading…
Reference in New Issue
Block a user