SteamWar/BungeeCore
Archiviert
13
2

Allow Fabric #127

Manuell gemergt
YoyoNow hat 4 Commits von allow-fabric nach master 2020-10-12 12:46:06 +02:00 zusammengeführt
2 geänderte Dateien mit 16 neuen und 46 gelöschten Zeilen
Nur Änderungen aus Commit a50b41db2b werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -216,7 +216,22 @@ public class BungeeCore extends Plugin {
config = ConfigurationProvider.getProvider(YamlConfiguration.class).load(configFile);
}catch(IOException e){
log("Could not save/load config.yml", e);
ProxyServer.getInstance().stop();
//ProxyServer.getInstance().stop();
CHAT_PREFIX = "§eSteam§8War» §r";
WORLD_FOLDER = "/home/minecraft/userworlds/";
BAUWELT_PROTOTYP = "/home/minecraft/backbone/server/UserBau/Bauwelt2";
LOBBY_SERVER = "Lobby";
USERWORLDS15 = "/home/minecraft/userworlds15/";
BAUWELT15 = "/home/minecraft/backbone/server/Bau15/Bauwelt";
Broadcaster.setBroadCastMsgs(new String[] {});
Persistent.setChatPrefix(CHAT_PREFIX);
Persistent.setLobbyServer(LOBBY_SERVER);
SQL.connect(
"jdbc:mysql://127.0.0.1:3306/developer",
Password.getUsername(),
Password.getPassword()
);
return;
}

Datei anzeigen

@ -1,45 +0,0 @@
/*
This file is a part of the SteamWar software.
Copyright (C) 2020 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.bungeecore.listeners.mods;
import de.steamwar.bungeecore.BungeeCore;
import de.steamwar.bungeecore.listeners.BasicListener;
import net.md_5.bungee.api.connection.Connection;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.event.PluginMessageEvent;
import net.md_5.bungee.event.EventHandler;
public class Fabric extends BasicListener {
@EventHandler
public void onPluginMessageEvent(PluginMessageEvent e){
Connection sender = e.getSender();
if(!(sender instanceof ProxiedPlayer))
return;
if(!e.getTag().equals("minecraft:brand"))
return;
if(new String(e.getData()).contains("fabric")){
ProxiedPlayer p = (ProxiedPlayer) sender;
p.disconnect(BungeeCore.stringToText("§7Die Verwendung von Fabric ist auf §eSteam§8War §7nicht gestattet."));
}
}
}