This repository was archived by the owner on Jul 7, 2023. It is now read-only.
File tree 1 file changed +4
-4
lines changed
src/main/java/com/massivecraft/factions/cmd
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
package com .massivecraft .factions .cmd ;
2
2
3
+ import com .cryptomorin .xseries .XMaterial ;
3
4
import com .massivecraft .factions .Board ;
4
5
import com .massivecraft .factions .FLocation ;
5
6
import com .massivecraft .factions .SavageFactions ;
@@ -46,13 +47,13 @@ public void perform(CommandContext context) {
46
47
context .msg (TL .COMMAND_VAULT_INVALID );
47
48
return ;
48
49
}
49
- FLocation vaultFLocation = new FLocation (vaultLocation );
50
- if (Board .getInstance ().getFactionAt (vaultFLocation ) != context .faction ) {
50
+ if (vaultLocation .getBlock ().getType () != XMaterial .CHEST .parseMaterial ()) {
51
51
context .faction .setVault (null );
52
52
context .msg (TL .COMMAND_VAULT_INVALID );
53
53
return ;
54
54
}
55
- if (vaultLocation .getBlock ().getType () != Material .CHEST ) {
55
+ FLocation vaultFLocation = new FLocation (vaultLocation );
56
+ if (Board .getInstance ().getFactionAt (vaultFLocation ) != context .faction ) {
56
57
context .faction .setVault (null );
57
58
context .msg (TL .COMMAND_VAULT_INVALID );
58
59
return ;
@@ -62,7 +63,6 @@ public void perform(CommandContext context) {
62
63
context .msg (TL .COMMAND_VAULT_OPENING );
63
64
context .player .openInventory (chestInv );
64
65
65
-
66
66
}
67
67
68
68
@ Override
You can’t perform that action at this time.
0 commit comments