mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-02-03 14:01:52 +01:00
better variable names
This commit is contained in:
parent
cb8b6d81d2
commit
909b99cd65
@ -14,10 +14,10 @@ public class JeffChestSortCommandExecutor implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] arg3) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
|
|
||||||
// This command toggles automatic chest sorting for the player that runs the command
|
// This command toggles automatic chest sorting for the player that runs the command
|
||||||
if (arg1.getName().equalsIgnoreCase("chestsort")) {
|
if (command.getName().equalsIgnoreCase("chestsort")) {
|
||||||
|
|
||||||
if (!(sender instanceof Player)) {
|
if (!(sender instanceof Player)) {
|
||||||
sender.sendMessage(plugin.messages.MSG_PLAYERSONLY);
|
sender.sendMessage(plugin.messages.MSG_PLAYERSONLY);
|
||||||
|
Loading…
Reference in New Issue
Block a user