mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00:00
NoChargeException for teleport commands
This commit is contained in:
parent
1cbdbc40a5
commit
e9a14b204f
2 changed files with 15 additions and 0 deletions
|
@ -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");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue