mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 17:45:08 +02:00
Code cleanup; deprecated /nuble
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1271 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package com.earth2me.essentials.commands;
|
||||
|
||||
import org.bukkit.Server;
|
||||
import com.earth2me.essentials.Essentials;
|
||||
import com.earth2me.essentials.User;
|
||||
|
||||
|
||||
public class Commandnuble extends EssentialsCommand
|
||||
{
|
||||
public Commandnuble()
|
||||
{
|
||||
super("nuble");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception
|
||||
{
|
||||
user.charge(this);
|
||||
user.sendMessage("§7Flight is allowed on this server.");
|
||||
}
|
||||
}
|
@@ -5,6 +5,7 @@ import com.earth2me.essentials.User;
|
||||
|
||||
import org.bukkit.Server;
|
||||
|
||||
|
||||
public class Commandweather extends EssentialsCommand
|
||||
{
|
||||
public Commandweather()
|
||||
@@ -18,16 +19,9 @@ public class Commandweather extends EssentialsCommand
|
||||
switch (args.length)
|
||||
{
|
||||
case 0:
|
||||
if (user.isAuthorized("essentials.weather"))
|
||||
{
|
||||
user.sendMessage("§cUsage: /" + commandLabel + " <storm/sun> [duration]");
|
||||
break;
|
||||
}
|
||||
user.sendMessage("§cYou are not allowed to change the weather");
|
||||
break;
|
||||
case 1:
|
||||
if (user.isAuthorized("essentials.weather"))
|
||||
{
|
||||
if (args[0].equalsIgnoreCase("storm"))
|
||||
{
|
||||
user.getWorld().setStorm(true);
|
||||
@@ -41,12 +35,7 @@ public class Commandweather extends EssentialsCommand
|
||||
break;
|
||||
}
|
||||
user.sendMessage("§cUsage: /" + commandLabel + " <storm/sun> [duration]");
|
||||
}
|
||||
user.sendMessage("§cYou are not allowed to change the weather");
|
||||
break;
|
||||
case 2:
|
||||
if (user.isAuthorized("essentials.weather"))
|
||||
{
|
||||
if (args[0].equalsIgnoreCase("storm"))
|
||||
{
|
||||
user.getWorld().setStorm(true);
|
||||
@@ -63,8 +52,5 @@ public class Commandweather extends EssentialsCommand
|
||||
}
|
||||
user.sendMessage("§cUsage: /" + commandLabel + " <storm/sun> [duration]");
|
||||
}
|
||||
user.sendMessage("§cYou are not allowed to change the weather");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -168,9 +168,6 @@ commands:
|
||||
description: Change your nickname or that of another player.
|
||||
usage: /<command> <player> [nickname|off]
|
||||
aliases: [enick]
|
||||
nuble:
|
||||
description: Used by Nuble to request permission for takeoff.
|
||||
usage: /<command> identify [id]
|
||||
pay:
|
||||
description: Pays another player from your balance
|
||||
usage: /<command> [player] [amount]
|
||||
|
Reference in New Issue
Block a user