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) {
|
||||
if (requestedMode != null) {
|
||||
if (!region.hasTestblock() && requestedMode == TNTMode.ONLY_TB) {
|
||||
requestedMode = TNTMode.ON;
|
||||
requestedMessage = getEnableMessage();
|
||||
}
|
||||
if (requestedMode != null && region.hasTestblock()) {
|
||||
region.setTntMode(requestedMode);
|
||||
RegionToggleCommand.actionBar(region, requestedMessage);
|
||||
return;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren