Consolidated message.

This commit is contained in:
Steven Lawson 2011-09-24 00:24:02 -04:00
parent a5d3ccd3bd
commit 11c10cd83d
2 changed files with 20 additions and 16 deletions

View File

@ -25,11 +25,13 @@ dist.dir=dist
dist.jar=${dist.dir}/TotalFreedomMod.jar dist.jar=${dist.dir}/TotalFreedomMod.jar
dist.javadoc.dir=${dist.dir}/javadoc dist.javadoc.dir=${dist.dir}/javadoc
excludes= excludes=
file.reference.bukkit-0.0.1-SNAPSHOT.jar=C:\\Documents and Settings\\Steven\\github\\bukkit-0.0.1-SNAPSHOT.jar file.reference.bukkit-0.0.1-SNAPSHOT.jar=C:\\repositories\\Bukkit\\target\\bukkit-0.0.1-SNAPSHOT.jar
file.reference.Essentials.jar=C:\\repositories\\Essentials\\BuildAll\\dist\\lib\\Essentials.jar
includes=** includes=**
jar.compress=false jar.compress=false
javac.classpath=\ javac.classpath=\
${file.reference.bukkit-0.0.1-SNAPSHOT.jar} ${file.reference.bukkit-0.0.1-SNAPSHOT.jar}:\
${file.reference.Essentials.jar}
# Space-separated list of extra javac options # Space-separated list of extra javac options
javac.compilerargs= javac.compilerargs=
javac.deprecation=false javac.deprecation=false

View File

@ -30,6 +30,8 @@ public class TotalFreedomMod extends JavaPlugin
public Boolean allowLavaDamage = false; public Boolean allowLavaDamage = false;
public Boolean allowFire = false; public Boolean allowFire = false;
public final static String MSG_NO_PERMS = ChatColor.YELLOW + "You do not have permission to use this command.";
public void onEnable() public void onEnable()
{ {
CONFIG = getConfiguration(); CONFIG = getConfiguration();
@ -93,7 +95,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
} }
@ -167,7 +169,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -202,7 +204,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -233,7 +235,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -264,7 +266,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -283,7 +285,7 @@ public class TotalFreedomMod extends JavaPlugin
{ {
if (!sender.isOp()) if (!sender.isOp())
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
return true; return true;
} }
} }
@ -327,7 +329,7 @@ public class TotalFreedomMod extends JavaPlugin
{ {
if (!sender.isOp()) if (!sender.isOp())
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
return true; return true;
} }
} }
@ -378,7 +380,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -397,7 +399,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -437,7 +439,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -455,7 +457,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -482,7 +484,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -509,7 +511,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;
@ -536,7 +538,7 @@ public class TotalFreedomMod extends JavaPlugin
} }
else else
{ {
sender.sendMessage(ChatColor.YELLOW + "You do not have permission to use this command."); sender.sendMessage(MSG_NO_PERMS);
} }
return true; return true;