made stuff not break description hello okay?
This commit is contained in:
parent
9da8aa72df
commit
e238a4475f
3 changed files with 9 additions and 9 deletions
|
@ -3,7 +3,7 @@ name: ButtonPresents
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
hello:
|
dictionary:
|
||||||
description: A set of Hello World commands and listeners, type in /hello to see subcommands
|
description: A set of Hello World commands and listeners, type in /hello to see subcommands
|
||||||
rtp:
|
rtp:
|
||||||
description: A command that allows players to randomly teleport across the map
|
description: A command that allows players to randomly teleport across the map
|
|
@ -4,22 +4,22 @@ package buttondevteam.presents.dictionary.config;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import buttondevteam.lib.chat.CommandClass;
|
import buttondevteam.lib.chat.CommandClass;
|
||||||
import buttondevteam.presents.architecture.commands.UniversalCommand;
|
import buttondevteam.presents.architecture.commands.ModCommand;
|
||||||
|
|
||||||
@CommandClass(path = "dictionary load")
|
@CommandClass(modOnly=true, path = "dictionary load")
|
||||||
public class LoadConfig extends UniversalCommand {
|
public class LoadConfig extends ModCommand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean OnCommand(CommandSender sender, String alias, String[] args) {
|
public boolean OnCommand(Player player, String alias, String[] args) {
|
||||||
if (args.length > 1 && args[0].toLowerCase().contains("debug")){
|
if (args.length > 1 && args[0].toLowerCase().contains("debug")){
|
||||||
sender.sendMessage("Data Type: " + this.getPlugin().getConfig().get("hellosave").getClass().toString());
|
player.sendMessage("Data Type: " + this.getPlugin().getConfig().get("hellosave").getClass().toString());
|
||||||
}
|
}
|
||||||
List<String> mylist = this.getPlugin().getConfig().getStringList("hellosave");
|
List<String> mylist = this.getPlugin().getConfig().getStringList("hellosave");
|
||||||
for(String string : mylist){
|
for(String string : mylist){
|
||||||
sender.sendMessage(string);
|
player.sendMessage(string);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ name: ButtonPresents
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
hello:
|
dictionary:
|
||||||
description: A set of Hello World commands and listeners, type in /hello to see subcommands
|
description: A set of Hello World commands and listeners, type in /hello to see subcommands
|
||||||
rtp:
|
rtp:
|
||||||
description: A command that allows players to randomly teleport across the map
|
description: A command that allows players to randomly teleport across the map
|
Loading…
Reference in a new issue