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