mirror of
https://github.com/SunNetservers/MiniGames.git
synced 2025-07-12 02:54:44 +02:00
Implements #27 among other things
It was found that the Spigot API's methods for cancelling player collisions won't work without changing the scoreboard. Because of that, the normal option has been disabled. The invisibility option has also been removed, as that's a bad idea if players can still push each-other. The toggle player option which is implemented in this commit does disable player collision, so that's the only working way right now. A potential ConcurrentModificationException has been fixed. The parkourCheckpoint command has been removed, as the functionality is now available through the API.
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package net.knarcraft.minigames.gui;
|
||||
|
||||
import net.knarcraft.minigames.MiniGames;
|
||||
|
||||
/**
|
||||
* A GUI used in the dropper arena
|
||||
*/
|
||||
@ -9,10 +11,11 @@ public class DropperGUI extends ArenaGUI {
|
||||
* Instantiates a new dropper gui
|
||||
*/
|
||||
public DropperGUI() {
|
||||
super(9, "Dropper");
|
||||
super(9, "Dropper", MiniGames.getInstance().getDropperArenaPlayerRegistry());
|
||||
setItem(0, getTogglePlayersItem());
|
||||
setItem(2, getLeaveItem());
|
||||
|
||||
setAnyClickAction(0, getTogglePlayersAction());
|
||||
setAnyClickAction(2, getLeaveAction());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user