From a46a8ef1a0952b29be1f0a2335a037357dcd9dce Mon Sep 17 00:00:00 2001 From: Jack <55409055+Jack1424@users.noreply.github.com> Date: Thu, 15 Sep 2022 22:03:45 -0400 Subject: [PATCH] added some more missing spaces --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 61f253d..b94f989 100644 --- a/README.md +++ b/README.md @@ -132,26 +132,26 @@ public class ExamplePlugin extends JavaPlugin { } public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { - if(!(sender instanceof Player)) { + if (!(sender instanceof Player)) { log.info("Only players are supported for this Example Plugin, but you should not do this!!!"); return true; } Player player = (Player) sender; - if(command.getLabel().equals("test-economy")) { + if (command.getLabel().equals("test-economy")) { // Let's give the player 1.05 currency (note that SOME economic plugins require rounding!) sender.sendMessage(String.format("You have %s", econ.format(econ.getBalance(player.getName())))); EconomyResponse r = econ.depositPlayer(player, 1.05); - if(r.transactionSuccess()) { + if (r.transactionSuccess()) { sender.sendMessage(String.format("You were given %s and now have %s", econ.format(r.amount), econ.format(r.balance))); } else { sender.sendMessage(String.format("An error occurred: %s", r.errorMessage)); } return true; - } else if(command.getLabel().equals("test-permission")) { + } else if (command.getLabel().equals("test-permission")) { // Let's test if user has the node "example.plugin.awesome" to determine if they are awesome or just suck - if(perms.has(player, "example.plugin.awesome")) { + if (perms.has(player, "example.plugin.awesome")) { sender.sendMessage("You are awesome!"); } else { sender.sendMessage("You suck!");