3
0
Fork 0

Fixed building issues (forgot 2 classes, whoops)

This commit is contained in:
stijnb1234 2021-07-02 11:19:37 +02:00
parent 1478ca2ee6
commit 1d5ae68300
2 changed files with 4 additions and 4 deletions

View file

@ -204,12 +204,12 @@ public class TPPCMD implements CommandExecutor {
return true; return true;
} }
if (!nl.iobyte.themepark.api.API.isAttraction(args[1])) { if (!nl.iobyte.themepark.ThemePark.getInstance().getAPI().getAttractionService().hasAttraction(args[1])) {
sender.sendMessage(ConfigUtil.getMessage("Fastpass.UnknownRide", Collections.singletonMap("%ridename%", args[1]))); sender.sendMessage(ConfigUtil.getMessage("Fastpass.UnknownRide", Collections.singletonMap("%ridename%", args[1])));
return true; return true;
} }
nl.iobyte.themepark.api.attraction.Attraction att = nl.iobyte.themepark.api.API.getAttraction(args[1]); nl.iobyte.themepark.api.attraction.objects.Attraction att = nl.iobyte.themepark.ThemePark.getInstance().getAPI().getAttractionService().getAttraction(args[1]);
Player target; Player target;
if (args.length == 3) { if (args.length == 3) {

View file

@ -45,7 +45,7 @@ public class SignListeners implements Listener {
return; return;
} }
if (!nl.iobyte.themepark.api.API.isAttraction(lines[2])) { if (!nl.iobyte.themepark.ThemePark.getInstance().getAPI().getAttractionService().hasAttraction(lines[2])) {
p.sendMessage(ConfigUtil.getMessage("Fastpass.UnknownRide", Collections.singletonMap("ridename", e.getLine(2)))); p.sendMessage(ConfigUtil.getMessage("Fastpass.UnknownRide", Collections.singletonMap("ridename", e.getLine(2))));
return; return;
} }
@ -80,7 +80,7 @@ public class SignListeners implements Listener {
e.setLine(0, wrLineOne); e.setLine(0, wrLineOne);
e.setLine(1, wrLineTwo); e.setLine(1, wrLineTwo);
e.setLine(2, ConfigUtil.makecolored(nl.iobyte.themepark.api.API.getAttraction(lines[2]).getName())); e.setLine(2, ConfigUtil.makecolored(nl.iobyte.themepark.ThemePark.getInstance().getAPI().getAttractionService().getAttraction(lines[2]).getName()));
e.setLine(3, "0 min."); e.setLine(3, "0 min.");
p.sendMessage(ConfigUtil.getMessage("WaitingRow.SignCreated")); p.sendMessage(ConfigUtil.getMessage("WaitingRow.SignCreated"));