Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet authored Jul 27, 2018
1 parent 01db245 commit 27008e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fr/zabricraft/craftsearch/commands/PardonCmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public class PardonCmd implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (args.length == 1) {
Map<String, Object> data = new HashMap<String, Object>();
data.put("method", "ZabriPlayer:removeSanction()");
data.put("player_name", args[0]);
data.put("player_uuid", "");
data.put("method", "Plugin:removePlayerSanction()");
data.put("name", args[0]);
data.put("uuid", "");
data.put("type", Sanction.BAN.toString());
Map<String, Object> response = CraftSearch.getInstance().query(data);
if (response.containsKey("success") && response.get("success").equals("true")) {
Expand Down

0 comments on commit 27008e0

Please sign in to comment.