Remove deprecated methods, update all perms to default to OP, except help

This commit is contained in:
Eric Stokes 2011-07-17 17:13:33 -06:00
parent bdefb38f3c
commit e446c99f9e
7 changed files with 6 additions and 29 deletions

View File

@ -63,29 +63,6 @@ public class MVPermissions implements PermissionsInterface {
return this.hasPermission(p, "multiverse.access." + w.getName(), false);
}
/**
* Returns true if a player is in a group. DEPRECATED: We're moving away from groups. Use permissions nodes in the groups instead.
*
* @param player The player to check
* @param worldName The world to check in
* @param group The group are we checking
* @return True if the player is in the group, false if not.
*/
@Deprecated
private boolean inGroup(Player player, String worldName, String group) {
if (this.permissions != null) {
return this.permissions.inGroup(worldName, player.getName(), group);
} else {
return player.isOp();
}
}
@Deprecated
public List<String> getGroups(String worldName, String name) {
return Arrays.asList(this.permissions.getGroups(worldName, name));
}
public void setPermissions(PermissionHandler handler) {
this.permissions = handler;
}

View File

@ -22,7 +22,7 @@ public class CoordCommand extends MultiverseCommand {
this.setArgRange(0, 0);
this.addKey("mv coord");
this.addKey("mvcoord");
this.setPermission("multiverse.core.coord", "Returns detailed information on the Players where abouts.", PermissionDefault.TRUE);
this.setPermission("multiverse.core.coord", "Returns detailed information on the Players where abouts.", PermissionDefault.OP);
}
@Override

View File

@ -18,7 +18,7 @@ public class EnvironmentCommand extends MultiverseCommand {
this.setArgRange(0, 0);
this.addKey("mvenv");
this.addKey("mv env");
this.setPermission("multiverse.core.list.environments", "Lists valid known environments.", PermissionDefault.TRUE);
this.setPermission("multiverse.core.list.environments", "Lists valid known environments.", PermissionDefault.OP);
}

View File

@ -20,7 +20,7 @@ public class ImportCommand extends MultiverseCommand {
this.addKey("mvimport");
this.addKey("mvi");
this.addKey("mv import");
this.setPermission("multiverse.core.import", "Imports a new world of the specified type.", PermissionDefault.TRUE);
this.setPermission("multiverse.core.import", "Imports a new world of the specified type.", PermissionDefault.OP);
}
@Override

View File

@ -21,7 +21,7 @@ public class InfoCommand extends MultiverseCommand {
this.addKey("mvinfo");
this.addKey("mvi");
this.addKey("mv info");
this.setPermission("multiverse.world.coord", "Returns detailed information on the world.", PermissionDefault.TRUE);
this.setPermission("multiverse.world.coord", "Returns detailed information on the world.", PermissionDefault.OP);
}
@Override

View File

@ -21,7 +21,7 @@ public class ListCommand extends MultiverseCommand {
this.addKey("mvlist");
this.addKey("mvl");
this.addKey("mv list");
this.setPermission("multiverse.core.list.worlds", "Displays a listing of all worlds that you can enter.", PermissionDefault.TRUE);
this.setPermission("multiverse.core.list.worlds", "Displays a listing of all worlds that you can enter.", PermissionDefault.OP);
}
@Override

View File

@ -19,7 +19,7 @@ public class WhoCommand extends MultiverseCommand {
this.setCommandUsage("/mvwho" + ChatColor.GOLD + " [WORLD]");
this.setArgRange(0, 1);
this.addKey("mvwho");
this.setPermission("multiverse.core.list.who", "States who is in what world.", PermissionDefault.TRUE);
this.setPermission("multiverse.core.list.who", "States who is in what world.", PermissionDefault.OP);
}
@Override