mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-23 16:41:38 +01:00
Merge remote-tracking branch 'origin/groupmanager' into 2.9
This commit is contained in:
commit
f17485b112
@ -397,17 +397,12 @@ public class GroupManager extends JavaPlugin {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sender.getClass().getName().equals("org.bukkit.craftbukkit.command.CraftBlockCommandSender")) {
|
|
||||||
sender.sendMessage(ChatColor.RED + "GM Commands can not be called from CommandBlocks");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// DETERMINING PLAYER INFORMATION
|
// DETERMINING PLAYER INFORMATION
|
||||||
if (sender instanceof Player) {
|
if (sender instanceof Player) {
|
||||||
senderPlayer = (Player) sender;
|
senderPlayer = (Player) sender;
|
||||||
|
|
||||||
if (!lastError.isEmpty() && !commandLabel.equalsIgnoreCase("manload")) {
|
if (!lastError.isEmpty() && !commandLabel.equalsIgnoreCase("manload")) {
|
||||||
GroupManager.logger.warning(ChatColor.RED + "All commands are locked due to an error. " + ChatColor.BOLD + "" + ChatColor.UNDERLINE + "Check the log" + ChatColor.RESET + "" + ChatColor.RED + " and then try a '/manload'.");
|
sender.sendMessage(ChatColor.RED + "All commands are locked due to an error. " + ChatColor.BOLD + "" + ChatColor.UNDERLINE + "Check the log" + ChatColor.RESET + "" + ChatColor.RED + " and then try a '/manload'.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1975,8 +1970,8 @@ public class GroupManager extends JavaPlugin {
|
|||||||
|
|
||||||
sender.sendMessage(ChatColor.YELLOW + "You have selected world '" + dataHolder.getName() + "'.");
|
sender.sendMessage(ChatColor.YELLOW + "You have selected world '" + dataHolder.getName() + "'.");
|
||||||
sender.sendMessage(ChatColor.YELLOW + "This world is using the following data files..");
|
sender.sendMessage(ChatColor.YELLOW + "This world is using the following data files..");
|
||||||
sender.sendMessage(ChatColor.YELLOW + "Groups: " + dataHolder.getGroupsFile().getAbsolutePath());
|
sender.sendMessage(ChatColor.YELLOW + "Groups:" + ChatColor.GREEN + " " + dataHolder.getGroupsFile().getAbsolutePath());
|
||||||
sender.sendMessage(ChatColor.YELLOW + "Users: " + dataHolder.getUsersFile().getAbsolutePath());
|
sender.sendMessage(ChatColor.YELLOW + "Users:" + ChatColor.GREEN + " " + dataHolder.getUsersFile().getAbsolutePath());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -43,6 +43,11 @@ public class GroupsDataHolder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public WorldDataHolder getDataSource() {
|
||||||
|
|
||||||
|
return this.dataSource;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the defaultGroup
|
* @return the defaultGroup
|
||||||
*/
|
*/
|
||||||
|
@ -51,6 +51,11 @@ public class UsersDataHolder {
|
|||||||
return users;
|
return users;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public WorldDataHolder getDataSource() {
|
||||||
|
|
||||||
|
return this.dataSource;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the Users
|
* Resets the Users
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user