mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
Try to be a little less confusing with non-command debug errors.
This commit is contained in:
parent
beef371ae6
commit
4232216f76
@ -114,7 +114,7 @@ public class TimedTeleport implements Runnable
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ess.showError(teleportOwner.getSource(), ex, "teleport");
|
ess.showError(teleportOwner.getSource(), ex, "\\ teleport");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -51,11 +51,11 @@ public class EssentialsSign
|
|||||||
}
|
}
|
||||||
catch (ChargeException ex)
|
catch (ChargeException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
}
|
}
|
||||||
catch (SignException ex)
|
catch (SignException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
}
|
}
|
||||||
// Return true, so the player sees the wrong sign.
|
// Return true, so the player sees the wrong sign.
|
||||||
return true;
|
return true;
|
||||||
@ -97,12 +97,12 @@ public class EssentialsSign
|
|||||||
}
|
}
|
||||||
catch (ChargeException ex)
|
catch (ChargeException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
catch (SignException ex)
|
catch (SignException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ public class EssentialsSign
|
|||||||
}
|
}
|
||||||
catch (SignException ex)
|
catch (SignException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -148,11 +148,11 @@ public class EssentialsSign
|
|||||||
}
|
}
|
||||||
catch (ChargeException ex)
|
catch (ChargeException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
}
|
}
|
||||||
catch (SignException ex)
|
catch (SignException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -166,11 +166,11 @@ public class EssentialsSign
|
|||||||
}
|
}
|
||||||
catch (ChargeException ex)
|
catch (ChargeException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
}
|
}
|
||||||
catch (SignException ex)
|
catch (SignException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -184,7 +184,7 @@ public class EssentialsSign
|
|||||||
}
|
}
|
||||||
catch (SignException ex)
|
catch (SignException ex)
|
||||||
{
|
{
|
||||||
ess.showError(user.getSource(), ex, signName);
|
showError(ess, user.getSource(), ex, signName);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -459,6 +459,11 @@ public class EssentialsSign
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void showError(final IEssentials ess, final CommandSource sender, final Throwable exception, final String signName)
|
||||||
|
{
|
||||||
|
ess.showError(sender, exception, "\\ sign: " + signName);
|
||||||
|
}
|
||||||
|
|
||||||
static class EventSign implements ISign
|
static class EventSign implements ISign
|
||||||
{
|
{
|
||||||
private final transient SignChangeEvent event;
|
private final transient SignChangeEvent event;
|
||||||
|
@ -82,7 +82,7 @@ public abstract class EssentialsChatPlayer implements Listener
|
|||||||
}
|
}
|
||||||
catch (ChargeException e)
|
catch (ChargeException e)
|
||||||
{
|
{
|
||||||
ess.showError(chatStore.getUser().getSource(), e, chatStore.getLongType());
|
ess.showError(chatStore.getUser().getSource(), e, "\\ chat " + chatStore.getLongType());
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user