From 3c272a3e31a8ae564affb0a5eef543b263c2c875 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 1 Apr 2020 14:41:27 +0100 Subject: [PATCH] register a valid skill for AprilCommand (Fixes #4147) --- src/main/java/com/gmail/nossr50/util/HolidayManager.java | 2 +- src/main/resources/plugin.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/HolidayManager.java b/src/main/java/com/gmail/nossr50/util/HolidayManager.java index c4a1fabfe..7ae7fb2fc 100644 --- a/src/main/java/com/gmail/nossr50/util/HolidayManager.java +++ b/src/main/java/com/gmail/nossr50/util/HolidayManager.java @@ -381,7 +381,7 @@ public final class HolidayManager { if(!Config.getInstance().isAprilFoolsAllowed()) return; - PluginCommand command = mcMMO.p.getCommand("mcfools"); + PluginCommand command = mcMMO.p.getCommand("crafting"); command.setExecutor(new AprilCommand()); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 7006f2318..a7b318d55 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -167,8 +167,9 @@ commands: aliases: [mcsb] description: Manage your mcMMO Scoreboard permission: mcmmo.commands.mcscoreboard - mcfools: - aliases: [macho, jumping, throwing, wrecking, crafting, walking, swimming, falling, climbing, flying, diving, piggy] + #mcfools: + crafting: + aliases: [macho, jumping, throwing, wrecking, walking, swimming, falling, climbing, flying, diving, piggy] description: Deploy jokes permission: mcmmo.commands.mcfools mcmmoreloadlocale: