Continuing Permissions Murder.

This commit is contained in:
shatteredbeam 2013-02-12 17:37:34 -08:00
parent 697cfeea64
commit bb96c00cb9
4 changed files with 6 additions and 10 deletions

View File

@ -4,7 +4,6 @@ import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.McMMOPlayer;
import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.datatypes.PlayerProfile;
import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.locale.LocaleLoader;

View File

@ -8,7 +8,6 @@ import org.bukkit.entity.Player;
import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.McMMOPlayer;
import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.datatypes.PlayerProfile;
import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.locale.LocaleLoader;
import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.Users; import com.gmail.nossr50.util.Users;
public class McgodCommand implements CommandExecutor { public class McgodCommand implements CommandExecutor {
@ -18,7 +17,7 @@ public class McgodCommand implements CommandExecutor {
switch (args.length) { switch (args.length) {
case 0: case 0:
if (!Permissions.hasPermission(sender, "mcmmo.commands.mcgod")) { if (!sender.hasPermission("mcmmo.commands.mcgod")) {
sender.sendMessage(command.getPermissionMessage()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }
@ -45,7 +44,7 @@ public class McgodCommand implements CommandExecutor {
return true; return true;
case 1: case 1:
if (!Permissions.hasPermission(sender, "mcmmo.commands.mcgod.others")) { if (!sender.hasPermission("mcmmo.commands.mcgod.others")) {
sender.sendMessage(command.getPermissionMessage()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }

View File

@ -8,7 +8,6 @@ import org.bukkit.entity.Player;
import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.McMMOPlayer;
import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.datatypes.PlayerProfile;
import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.locale.LocaleLoader;
import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.Users; import com.gmail.nossr50.util.Users;
public class McrefreshCommand implements CommandExecutor { public class McrefreshCommand implements CommandExecutor {
@ -18,7 +17,7 @@ public class McrefreshCommand implements CommandExecutor {
switch (args.length) { switch (args.length) {
case 0: case 0:
if (!Permissions.hasPermission(sender, "mcmmo.commands.mcrefresh")) { if (!sender.hasPermission("mcmmo.commands.mcrefresh")) {
sender.sendMessage(command.getPermissionMessage()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }
@ -38,7 +37,7 @@ public class McrefreshCommand implements CommandExecutor {
return true; return true;
case 1: case 1:
if (!Permissions.hasPermission(sender, "mcmmo.commands.mcrefresh.others")) { if (!sender.hasPermission("mcmmo.commands.mcrefresh.others")) {
sender.sendMessage(command.getPermissionMessage()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }

View File

@ -11,7 +11,6 @@ import com.gmail.nossr50.locale.LocaleLoader;
import com.gmail.nossr50.skills.utilities.SkillTools; import com.gmail.nossr50.skills.utilities.SkillTools;
import com.gmail.nossr50.skills.utilities.SkillType; import com.gmail.nossr50.skills.utilities.SkillType;
import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Misc;
import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.Users; import com.gmail.nossr50.util.Users;
public class MmoeditCommand implements CommandExecutor { public class MmoeditCommand implements CommandExecutor {
@ -23,7 +22,7 @@ public class MmoeditCommand implements CommandExecutor {
switch (args.length) { switch (args.length) {
case 2: case 2:
if (!Permissions.hasPermission(sender, "mcmmo.commands.mmoedit")) { if (!sender.hasPermission("mcmmo.commands.mmoedit")) {
sender.sendMessage(command.getPermissionMessage()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }
@ -66,7 +65,7 @@ public class MmoeditCommand implements CommandExecutor {
return true; return true;
case 3: case 3:
if (!Permissions.hasPermission(sender, "mcmmo.commands.mmoedit.others")) { if (!sender.hasPermission("mcmmo.commands.mmoedit.others")) {
sender.sendMessage(command.getPermissionMessage()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }