mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-06 14:46:32 +02:00
NoChargeException for teleport commands
This commit is contained in:
@@ -28,6 +28,7 @@ import org.bukkit.*;
|
|||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import com.earth2me.essentials.commands.IEssentialsCommand;
|
import com.earth2me.essentials.commands.IEssentialsCommand;
|
||||||
|
import com.earth2me.essentials.commands.NoChargeException;
|
||||||
import com.earth2me.essentials.commands.NotEnoughArgumentsException;
|
import com.earth2me.essentials.commands.NotEnoughArgumentsException;
|
||||||
import com.earth2me.essentials.register.payment.Methods;
|
import com.earth2me.essentials.register.payment.Methods;
|
||||||
import com.earth2me.essentials.signs.SignBlockListener;
|
import com.earth2me.essentials.signs.SignBlockListener;
|
||||||
@@ -451,6 +452,10 @@ public class Essentials extends JavaPlugin implements IEssentials
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
catch (NoChargeException ex)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
catch (NotEnoughArgumentsException ex)
|
catch (NotEnoughArgumentsException ex)
|
||||||
{
|
{
|
||||||
sender.sendMessage(command.getDescription());
|
sender.sendMessage(command.getDescription());
|
||||||
|
@@ -0,0 +1,10 @@
|
|||||||
|
package com.earth2me.essentials.commands;
|
||||||
|
|
||||||
|
|
||||||
|
public class NoChargeException extends Exception
|
||||||
|
{
|
||||||
|
public NoChargeException()
|
||||||
|
{
|
||||||
|
super("Will charge later");
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user