File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
com/earth2me/essentials/api Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .earth2me .essentials .api ;
2+
3+ import net .ess3 .api .TranslatableException ;
4+
5+ /**
6+ * @deprecated This exception is unused. Use {@link net.ess3.api.InvalidWorldException} instead.
7+ */
8+ @ Deprecated
9+ public class InvalidWorldException extends TranslatableException {
10+ private final String world ;
11+
12+ public InvalidWorldException (final String world ) {
13+ super ("invalidWorld" );
14+ this .world = world ;
15+ }
16+
17+ public String getWorld () {
18+ return this .world ;
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ package net .ess3 .api ;
2+ /**
3+ * Fired when trying to teleport a user to an invalid world. This usually only occurs if a world has been removed from
4+ * the server and a player tries to teleport to a warp or home in that world.
5+ *
6+ * @deprecated no longer thrown.
7+ */
8+ @ Deprecated
9+ public class InvalidWorldException extends TranslatableException {
10+ private final String world ;
11+
12+ public InvalidWorldException (final String world ) {
13+ super ("invalidWorld" );
14+ this .world = world ;
15+ }
16+
17+ public String getWorld () {
18+ return this .world ;
19+ }
20+ }
You can’t perform that action at this time.
0 commit comments