forked from Geoffrey/Geoffrey-MC-Plugin
parent
c9c4be387b
commit
5d6daa0414
|
@ -61,7 +61,7 @@ public class DeleteResourceCommand extends GeoffreyCommand {
|
|||
|
||||
}
|
||||
else {
|
||||
sender.sendMessage(ChatColor.RED + "Console can not remove reosurces!");
|
||||
sender.sendMessage(ChatColor.RED + "Console can not remove resources!");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -44,8 +44,8 @@ public class EditNameCommand extends GeoffreyCommand {
|
|||
|
||||
Player player = ((Player) sender).getPlayer();
|
||||
|
||||
String oldLocationName = parsedArgs.get(0);
|
||||
String newLocationName = parsedArgs.get(1);
|
||||
String newLocationName = parsedArgs.get(0);
|
||||
String oldLocationName = parsedArgs.get(1);
|
||||
|
||||
params.put("mc_uuid", player.getUniqueId().toString().replace("-", ""));
|
||||
params.put("new_name", oldLocationName);
|
||||
|
|
|
@ -42,7 +42,7 @@ public class RegisterCommand extends GeoffreyCommand {
|
|||
|
||||
CommandCallback(CommandSender sender) {
|
||||
super(sender);
|
||||
errors.put("LocationLookUpError", "You have more than one location. Please specify a name.");
|
||||
errors.put("PlayerInDBError", "You are already registered, stop being so goober-ish.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -38,6 +38,7 @@ public final class GeoffreyMC extends JavaPlugin {
|
|||
this.getCommand("geoffrey_add_town").setExecutor(addLocationCommand);
|
||||
this.getCommand("geoffrey_add_farm").setExecutor(addLocationCommand);
|
||||
this.getCommand("geoffrey_add_attraction").setExecutor(addLocationCommand);
|
||||
this.getCommand("geoffrey_add_market").setExecutor(addLocationCommand);
|
||||
|
||||
RegisterCommand registerCommand = new RegisterCommand(this);
|
||||
this.getCommand("geoffrey_register").setExecutor(registerCommand);
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# GeoffreyAPI Settings
|
||||
geoffrey_api:
|
||||
# Geoffrey API Key
|
||||
key: ''
|
||||
# Geoffrey API Base Url (e.g. test.zerohighdef.com/GeoffreyApp/api/)
|
||||
api_base_url: ''
|
||||
# Geoffrey Base Url (e.g. test.zerohighdef.com)
|
||||
base_url: ''
|
Loading…
Reference in New Issue