-
Notifications
You must be signed in to change notification settings - Fork 0
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
67e71e8
commit dae5a71
Showing
7 changed files
with
50 additions
and
14 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
25 changes: 25 additions & 0 deletions
25
src/main/java/io/alerium/itemshops/commands/ReloadCommand.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,25 @@ | ||
package io.alerium.itemshops.commands; | ||
|
||
import io.alerium.itemshops.ItemShopsPlugin; | ||
import io.alerium.itemshops.utils.commands.SubCommand; | ||
import org.bukkit.command.CommandSender; | ||
|
||
public class ReloadCommand extends SubCommand { | ||
|
||
private final ItemShopsPlugin plugin = ItemShopsPlugin.getInstance(); | ||
|
||
public ReloadCommand() { | ||
super("reload", "itemshops.reload", false); | ||
} | ||
|
||
@Override | ||
public void execute(CommandSender sender, String[] args) { | ||
plugin.getConfiguration().reload(); | ||
plugin.getMessages().reload(); | ||
|
||
plugin.getShopManager().reload(); | ||
plugin.getCoinsManager().enable(); | ||
|
||
plugin.getMessages().getMessage("commands.reload").format().send(sender); | ||
} | ||
} |
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
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