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

@ -9,8 +9,8 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
@CommandPermissions(level = Rank.OP, source = SourceType.BOTH)
@CommandParameters(description = "Makes random sounds to everyone online.", usage = "/<command>")
@CommandPermissions(level = Rank.OP, source = SourceType.ONLY_IN_GAME)
@CommandParameters(description = "Makes random sounds.", usage = "/<command>")
public class Command_deafen extends FreedomCommand
{
@ -48,4 +48,4 @@ public class Command_deafen extends FreedomCommand
{
return min + (random.nextDouble() * ((max - min) + 1.0));
}
}
}