summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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??
}