sourcetype fixes; making sure in game commands work only in game
This commit is contained in:
speedxx
2020-07-28 23:14:58 -04:00
parent 05abebea65
commit 0ae835aa04
11 changed files with 49 additions and 39 deletions

View File

@ -17,7 +17,7 @@ import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH, blockHostConsole = false)
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Remove all blocks of a certain type in the radius of certain players.", usage = "/<command> <block> [radius (default=50)] [player]")
public class Command_ro extends FreedomCommand
{
@ -58,7 +58,7 @@ public class Command_ro extends FreedomCommand
}
}
int radius = 20;
int radius = 50;
if (args.length >= 2)
{
try
@ -179,4 +179,4 @@ public class Command_ro extends FreedomCommand
return affected;
}
}
}