13
0

Op on join
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-03-22 09:45:10 +01:00
Ursprung b56eae4ea9
Commit d3e937ec78
2 geänderte Dateien mit 33 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -19,6 +19,7 @@
package de.steamwar.tutorial;
import de.steamwar.tutorial.listener.Joining;
import de.steamwar.tutorial.listener.RateSign;
import org.bukkit.plugin.java.JavaPlugin;
@ -34,6 +35,7 @@ public class TutorialSystem extends JavaPlugin {
@Override
public void onEnable() {
new RateSign();
new Joining();
}
public static TutorialSystem getPlugin() {

Datei anzeigen

@ -0,0 +1,31 @@
/*
* This file is a part of the SteamWar software.
*
* Copyright (C) 2021 SteamWar.de-Serverteam
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package de.steamwar.tutorial.listener;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerJoinEvent;
public class Joining extends BasicListener {
@EventHandler
public void onJoin(PlayerJoinEvent event) {
event.getPlayer().setOp(true);
}
}