mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Fixed waypoint command parameters, all variations of it should work.
This commit is contained in:
@@ -178,5 +178,18 @@ public class WaypointObject extends IntangibleObject implements OutOfBandPackage
|
||||
}
|
||||
return WaypointColor.BLUE;
|
||||
}
|
||||
|
||||
public static WaypointColor fromString(String string) {
|
||||
switch(string) {
|
||||
case "blue": return WaypointColor.BLUE;
|
||||
case "green": return WaypointColor.GREEN;
|
||||
case "orange": return WaypointColor.ORANGE;
|
||||
case "yellow": return WaypointColor.YELLOW;
|
||||
case "purple": return WaypointColor.PURPLE;
|
||||
case "white": return WaypointColor.WHITE;
|
||||
case "multicolor": return WaypointColor.MULTICOLOR;
|
||||
default: return WaypointColor.BLUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user