summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-08-08 17:01:03 +0200
committersnowleo <schneeleo@gmail.com>2011-08-08 17:01:03 +0200
commitb07ba21659a07ab4d1546c0bc97c89850dcfd080 (patch)
tree2cc52d92a4b7fdbb5268cf602dd306d89132b999
parenta109134b92893ad98a6a8dabf32c0e42a6757806 (diff)
downloadEssentials-b07ba21659a07ab4d1546c0bc97c89850dcfd080.tar
Essentials-b07ba21659a07ab4d1546c0bc97c89850dcfd080.tar.gz
Essentials-b07ba21659a07ab4d1546c0bc97c89850dcfd080.tar.lz
Essentials-b07ba21659a07ab4d1546c0bc97c89850dcfd080.tar.xz
Essentials-b07ba21659a07ab4d1546c0bc97c89850dcfd080.zip
Corrected permission testing a bit
-rwxr-xr-xEssentials/src/com/earth2me/essentials/commands/Commandptime.java5
-rwxr-xr-xEssentials/src/com/earth2me/essentials/commands/Commandtime.java5
2 files changed, 4 insertions, 6 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandptime.java b/Essentials/src/com/earth2me/essentials/commands/Commandptime.java
index 0662c9b85..258d83003 100755
--- a/Essentials/src/com/earth2me/essentials/commands/Commandptime.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandptime.java
@@ -37,16 +37,15 @@ public class Commandptime extends EssentialsCommand
// If no arguments we are reading the time
if (args.length == 0)
{
- // TODO do we need to check for the essentials.time permission? Or is that tested for us already.
getUsersTime(sender, users);
return;
}
User user = ess.getUser(sender);
- if ( user != null && ! user.isAuthorized("essentials.time.player"))
+ if ( user != null && ! user.isAuthorized("essentials.ptime.others"))
{
// TODO should not be hardcoded !!
- sender.sendMessage(colorBad + "You are no authorized to set PlayerTime");
+ sender.sendMessage(colorBad + "You are not authorized to set others PlayerTime");
return; // TODO: How to not just die silently? in a good way??
}
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtime.java b/Essentials/src/com/earth2me/essentials/commands/Commandtime.java
index e895074e5..db249f950 100755
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtime.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtime.java
@@ -37,16 +37,15 @@ public class Commandtime extends EssentialsCommand
// If no arguments we are reading the time
if (args.length == 0)
{
- // TODO do we need to check for the essentials.time permission? Or is that tested for us already.
getWorldsTime(sender, worlds);
return;
}
User user = ess.getUser(sender);
- if ( user != null && ! user.isAuthorized("essentials.time.world"))
+ if ( user != null && ! user.isAuthorized("essentials.time.set"))
{
// TODO should not be hardcoded !!
- sender.sendMessage(colorBad + "You are no authorized to set the time");
+ sender.sendMessage(colorBad + "You are not authorized to set the time");
return; // TODO: How to not just die silently? in a good way??
}