Dieser Commit ist enthalten in:
Ursprung
b56eae4ea9
Commit
d3e937ec78
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package de.steamwar.tutorial;
|
package de.steamwar.tutorial;
|
||||||
|
|
||||||
|
import de.steamwar.tutorial.listener.Joining;
|
||||||
import de.steamwar.tutorial.listener.RateSign;
|
import de.steamwar.tutorial.listener.RateSign;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ public class TutorialSystem extends JavaPlugin {
|
|||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
new RateSign();
|
new RateSign();
|
||||||
|
new Joining();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TutorialSystem getPlugin() {
|
public static TutorialSystem getPlugin() {
|
||||||
|
31
src/de/steamwar/tutorial/listener/Joining.java
Normale Datei
31
src/de/steamwar/tutorial/listener/Joining.java
Normale Datei
@ -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);
|
||||||
|
}
|
||||||
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren