SteamWar/FightSystem
Archiviert
13
1

Merge pull request 'Adding option for F3+N' (#146) from testServerF3N/OP into master

Reviewed-by: Jan9103 <maxjanssen67@gmail.com>
Dieser Commit ist enthalten in:
Lixfel 2020-05-19 08:45:30 +02:00
Commit 24c06eb47c

Datei anzeigen

@ -9,7 +9,6 @@ import de.steamwar.fightsystem.states.FightState;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.permissions.PermissionAttachment;
import java.util.EnumSet; import java.util.EnumSet;
@ -37,7 +36,8 @@ public class TestListener extends BasicListener {
countdown = null; countdown = null;
} }
PermissionAttachment attachment = player.addAttachment(FightSystem.getPlugin()); player.setOp(true);
/*PermissionAttachment attachment = player.addAttachment(FightSystem.getPlugin());
attachment.setPermission("fawe.permpack.basic", true); attachment.setPermission("fawe.permpack.basic", true);
attachment.setPermission("minecraft.command.gamemode", true); attachment.setPermission("minecraft.command.gamemode", true);
attachment.setPermission("minecraft.command.tp", true); attachment.setPermission("minecraft.command.tp", true);
@ -169,6 +169,6 @@ public class TestListener extends BasicListener {
attachment.setPermission("worldedit.green", true); attachment.setPermission("worldedit.green", true);
attachment.setPermission("worldedit.extinguish", true); attachment.setPermission("worldedit.extinguish", true);
attachment.setPermission("worldedit.calc", true); attachment.setPermission("worldedit.calc", true);
attachment.setPermission("worldedit.fill", true); attachment.setPermission("worldedit.fill", true);*/
} }
} }