Simplify CommandTNT for Region without Testblock
Dieser Commit ist enthalten in:
Ursprung
d406ed7e66
Commit
475f93426c
@ -139,11 +139,7 @@ public class CommandTNT implements CommandExecutor, Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void tntToggle(Region region, TNTMode requestedMode, String requestedMessage) {
|
private void tntToggle(Region region, TNTMode requestedMode, String requestedMessage) {
|
||||||
if (requestedMode != null) {
|
if (requestedMode != null && region.hasTestblock()) {
|
||||||
if (!region.hasTestblock() && requestedMode == TNTMode.ONLY_TB) {
|
|
||||||
requestedMode = TNTMode.ON;
|
|
||||||
requestedMessage = getEnableMessage();
|
|
||||||
}
|
|
||||||
region.setTntMode(requestedMode);
|
region.setTntMode(requestedMode);
|
||||||
RegionToggleCommand.actionBar(region, requestedMessage);
|
RegionToggleCommand.actionBar(region, requestedMessage);
|
||||||
return;
|
return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren