-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca94fc2
commit 3f6c5b1
Showing
4 changed files
with
208 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/com/gamerforea/eventhelper/command/CommandReloadAllConfigs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.gamerforea.eventhelper.command; | ||
|
||
import com.gamerforea.eventhelper.config.ConfigUtils; | ||
import net.minecraft.command.CommandBase; | ||
import net.minecraft.command.ICommandSender; | ||
import net.minecraft.util.ChatComponentText; | ||
|
||
public final class CommandReloadAllConfigs extends CommandBase | ||
{ | ||
private static final String NAME = "reloadallconfigs"; | ||
|
||
@Override | ||
public String getCommandName() | ||
{ | ||
return NAME; | ||
} | ||
|
||
@Override | ||
public String getCommandUsage(ICommandSender sender) | ||
{ | ||
return '/' + NAME; | ||
} | ||
|
||
@Override | ||
public void processCommand(ICommandSender sender, String[] args) | ||
{ | ||
for (String configName : ConfigUtils.reloadAllConfigs()) | ||
{ | ||
sender.addChatMessage(new ChatComponentText(configName + " config has been reloaded")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters