Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 1.16 into master #909

Merged
merged 129 commits into from
Jul 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
2dc755c
Rename Geyser-Bukkit to Geyser-Spigot
Camotoy May 26, 2020
af669f2
Rename internal ping passthrough variable
Camotoy May 26, 2020
cae888e
Include PlatformType.java
Camotoy May 26, 2020
ccf9eff
Update workflow
Camotoy May 26, 2020
cc3b4c3
Merge latest master; copy over old Geyser-Bukkit configs
Camotoy Jun 11, 2020
d611937
(Incomplete) Update MCProtocolLib
Camotoy Jun 19, 2020
ad4c1ff
Update Message system
rtm516 Jun 19, 2020
65f61ec
Finish block state changes
Camotoy Jun 19, 2020
5327610
Don't forget about Bukkit
Camotoy Jun 19, 2020
47cadc7
Fix json data in chat
rtm516 Jun 19, 2020
8c5f582
Merge branch 'mcprotocollibupdate' of https://github.com/DoctorMacc/G…
rtm516 Jun 19, 2020
1015b83
Merge branch 'master' of https://github.com/GeyserMC/Geyser into mcpr…
Camotoy Jun 20, 2020
dbe1755
Update mappings repository
Camotoy Jun 20, 2020
77873b6
Update ViaVersion integration
Camotoy Jun 21, 2020
117cdf2
Begin updating Geyser. Requires manual MCProtocolLib compile
Camotoy Jun 21, 2020
b9ccabb
According to all known laws of aviation, bees exist
Camotoy Jun 21, 2020
427f4ef
Merge master into Spigot rename
Camotoy Jun 21, 2020
63244ad
Rename Geyser-Bukkit to Geyser-Spigot
Camotoy Jun 21, 2020
56f9330
Remove ServerSpawnWeatherEntityPacket
Camotoy Jun 21, 2020
ea1a9e5
Bedrock 1.16 updating part 1
Camotoy Jun 23, 2020
0471fa8
Bedrock 1.16 updating part 2 (Doesn't work)
Camotoy Jun 23, 2020
3ea1059
Update for 1.16
Camotoy Jun 23, 2020
ca7484a
Relocate Reflections Dependency (#802)
williamjohnstone Jun 23, 2020
78df56c
Update for 1.16.1
Camotoy Jun 24, 2020
2b874b4
Merge branch 'feature/1.16' of https://github.com/GeyserMC/Geyser int…
Camotoy Jun 24, 2020
b34dc05
Uncomment JavaDeclareCommandsTranslator and update
Camotoy Jun 24, 2020
60fa43c
Update Bedrock resources dumped by @bundabrg
Camotoy Jun 24, 2020
8be0c4b
Update some entity properties based on wiki.vg
Camotoy Jun 24, 2020
1490d6d
Update ViaVersion dependency
Camotoy Jun 24, 2020
1572ac2
Update mappings repository
Camotoy Jun 24, 2020
f0aaebc
Bump block state version
AJ-Ferguson Jun 24, 2020
a964bef
Merge branch 'feature/1.16' of https://github.com/GeyserMC/Geyser int…
Camotoy Jun 24, 2020
e4d9903
Bump action versions (#810)
basaigh Jun 24, 2020
71aada1
Fix dimension switching; add static references to new Java dimensions
Camotoy Jun 25, 2020
bd16925
Update mappings repository
Camotoy Jun 25, 2020
06fa0de
Add translator for PacketViolationWarningPacket
Camotoy Jun 25, 2020
bb630dc
Update PotionMixData
Camotoy Jun 25, 2020
6f2bf65
Update JavaEntityEquipmentTranslator for Java 1.16
Camotoy Jun 26, 2020
409293f
Add new 1.16 entities
Camotoy Jun 26, 2020
e60f47f
Fix zombified piglins
Camotoy Jun 26, 2020
54f6fad
Remove try/catch from BlockTranslator and ItemTranslator
Camotoy Jun 26, 2020
17a1e82
Add closest color mapping for RGB chat colors
rtm516 Jun 26, 2020
ba91291
Quick inventory fixes. WIP
AJ-Ferguson Jun 27, 2020
d516dc5
Update Mappings (#816)
williamjohnstone Jun 27, 2020
5b147f8
Fix en_us locale downloading (#809)
rtm516 Jun 27, 2020
75f470c
Fix creative items
Camotoy Jun 27, 2020
7743f6d
Add dump command (#808)
rtm516 Jun 27, 2020
3cd85ed
Update README.md (#811)
toinouH Jun 27, 2020
dd1747c
Updated the mappings and fixed building
Tim203 Jun 27, 2020
8f763df
Move common stuff used only by connector and bootstrap to connector
Tim203 Jun 27, 2020
2e0eb6d
Fix creative item list
AJ-Ferguson Jun 27, 2020
e3e8bb2
Fix first item of creative inventory not showing
AJ-Ferguson Jun 28, 2020
6e94428
Non-working smithing table inventory support
Jun 28, 2020
1410b67
Update mappings submodule
AJ-Ferguson Jun 28, 2020
9569416
Fix chat formatting and team colors
rtm516 Jun 28, 2020
2df3d4c
Update to the latest MCProtocolLib commit
Tim203 Jun 28, 2020
980e82a
Replace Bukkit with Spigot (#831)
basaigh Jun 28, 2020
8e8bc28
Return if sound is null and update mappings
Redned235 Jun 28, 2020
c2c64fd
Fix some recipes with multiple ingredient options
AJ-Ferguson Jun 28, 2020
f5da962
Fix disconnect message formatting
rtm516 Jun 28, 2020
12d5982
Anvil fixes
AJ-Ferguson Jun 29, 2020
f2f59e4
Fill in renamed villager trading values (villager trading UI now opens)
Camotoy Jun 29, 2020
70009c4
Clean chat code and fix skins
rtm516 Jun 29, 2020
91c3324
Fix baby states and collisions of 1.16 mobs
rtm516 Jun 29, 2020
d394cc6
Update entity metadata
rtm516 Jun 29, 2020
e77f2b5
Drop long array nbt tag when translating to bedrock
AJ-Ferguson Jun 29, 2020
ebc1f13
Update dependencies ('item marked as non-null' error is fixed')
Camotoy Jun 29, 2020
fc4a87a
Fix blocks not updating
Camotoy Jun 29, 2020
4c89a8e
Return to using Protocol develop branch
Camotoy Jun 29, 2020
7710261
Add Loadstone Compass tracking
rtm516 Jun 29, 2020
9514426
Handle int tag for enchantment level
AJ-Ferguson Jun 30, 2020
eb3bde1
Fix stored enchantments accidentally being dropped
AJ-Ferguson Jun 30, 2020
ba6adc9
Strider mounting fixes; update mappings
Camotoy Jun 30, 2020
a9bb874
Fix Zombified Piglin fire flicker
rtm516 Jun 30, 2020
e7fae53
Fix Strider shaking
rtm516 Jun 30, 2020
4c2a878
Update Bedrock Version (#868)
basaigh Jun 30, 2020
c804a6e
Fix respawning and death not being registered on the client
rtm516 Jun 30, 2020
81651cf
Add support for 3D biomes; fix Nether biome display
Camotoy Jul 1, 2020
51dfda1
Clean up formatting
Camotoy Jul 1, 2020
0f342c1
Update mappings to fix fences and plant stems
rtm516 Jul 1, 2020
c17f21e
Fix respawn bugs - hopefully for good
Camotoy Jul 1, 2020
699ae0b
Set strider entity offset properly if not a player entity
Camotoy Jul 2, 2020
6107294
Add GUI to standalone
rtm516 Jul 3, 2020
0daa445
Bump log4j-core from 2.13.1 to 2.13.2 in /bootstrap/standalone (#886)
dependabot[bot] Jul 3, 2020
ab71bf0
Fix bug when dropping items from an open inventory
AJ-Ferguson Jul 3, 2020
da96a5b
Fix Strider cold state when riding and removing of the RIDING flag wh…
rtm516 Jul 3, 2020
a7fbe99
Add comment and check for null when removing passengers
Camotoy Jul 4, 2020
cc2bbc6
Update mappings submodule
Redned235 Jul 4, 2020
8ac5d6e
Fix memory leak in legacy ping passthrough (Fixes #674, #813)
Redned235 Jul 4, 2020
4062f1e
Fix flower pots and item frames
Camotoy Jul 5, 2020
5958b5d
Fix ram graph causing memory leak and add cleanup of options menu on …
rtm516 Jul 5, 2020
da1674c
Update to Cloudburst NBT 2.0
Redned235 Jul 5, 2020
69d7db4
Update mappings submodule
Redned235 Jul 5, 2020
d1e5960
Send a dimension change upon join game packet now sent by bungeecord …
Redned235 Jul 5, 2020
cfaf405
Add Translation support (#504)
rtm516 Jul 5, 2020
6cdf1ea
Fix player table throwing errors on interaction
rtm516 Jul 5, 2020
ca4d827
Don't cause a recursion error if Geyser can't find the locale
Camotoy Jul 6, 2020
afcf1e3
Change versioning to match supported Bedrock version; add versioning …
Camotoy Jul 6, 2020
ad751ec
Fix ping passthrough throwing errors on unknown properties (Fixes #903)
rtm516 Jul 6, 2020
b0e291e
Fix version checking and add failed language string
rtm516 Jul 6, 2020
66570a6
Fix scoreboards bleeding into other servers (#902)
theminecoder Jul 6, 2020
3cdc208
Update MinecraftCapes endpoints (#907)
james090500 Jul 6, 2020
7e51040
Fix fallback locale not loading
rtm516 Jul 6, 2020
82c6276
Move back to using the main repository for MCProtocolLib
Camotoy Jul 6, 2020
545dfa3
JavaUpdateTileEntityTranslator improvements
Camotoy Jul 6, 2020
ba73657
Fix RGB colors on signs causing chunk issues, fix items names not bei…
rtm516 Jul 6, 2020
c454e44
Fix maps with negative IDs causing out of bounds errors
rtm516 Jul 6, 2020
02905c2
Add the adventure-api maven repo
rtm516 Jul 6, 2020
699402e
Fix bug with maps
AJ-Ferguson Jul 6, 2020
24f9651
Convert map of players to list (may address #833)
Redned235 Jul 7, 2020
f68632f
Block-related updates
Camotoy Jul 7, 2020
4353c18
Revert all 1.14.60-specific changes
Camotoy Jul 7, 2020
52a1256
Resolve merge conflict
Camotoy Jul 7, 2020
9359f40
Don't use 1.16 branch of mappings
Camotoy Jul 7, 2020
50176e1
Fix inabilty to place items into brewing stand
AJ-Ferguson Jul 7, 2020
f9760b7
Don't process the display tag if it's empty
Camotoy Jul 7, 2020
8807d5d
Fix banner block patterns
rtm516 Jul 7, 2020
75f2891
Fix map_uuid nbt type
rtm516 Jul 7, 2020
a16deb2
Fix exact color matches not being formatted correctly (Fixes #912)
rtm516 Jul 7, 2020
c2be7a1
Fix Piglin bartering animation (Fixes #863)
rtm516 Jul 7, 2020
5f6566a
Move to dynamic item ID mapping in ItemRegistry
rtm516 Jul 7, 2020
0cea703
Save ItemEntry classes for items
Camotoy Jul 7, 2020
4003298
Add magma cube jumping visual
Camotoy Jul 7, 2020
21ea1f2
Update MCProtocolLib to fix #836
Camotoy Jul 8, 2020
83ae319
Update languages submodule
Camotoy Jul 8, 2020
915ad2d
Update languages submodule
Camotoy Jul 8, 2020
fe25438
Clean up some TODOs
Camotoy Jul 8, 2020
bfdc452
Add emote support for Bedrock-to-Bedrock players
Camotoy Jul 8, 2020
9cc468c
Remove debug string
Camotoy Jul 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:
with:
name: Geyser Standalone
path: bootstrap/standalone/target/Geyser.jar
- name: Archive artifacts (Geyser Bukkit)
- name: Archive artifacts (Geyser Spigot)
uses: actions/upload-artifact@v2
if: success()
with:
name: Geyser Bukkit
path: bootstrap/bukkit/target/Geyser-Bukkit.jar
name: Geyser Spigot
path: bootstrap/spigot/target/Geyser-Spigot.jar
- name: Archive artifacts (Geyser BungeeCord)
uses: actions/upload-artifact@v2
if: success()
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "connector/src/main/resources/mappings"]
path = connector/src/main/resources/mappings
url = https://github.com/GeyserMC/mappings.git
[submodule "connector/src/main/resources/languages"]
path = connector/src/main/resources/languages
url = https://github.com/GeyserMC/languages.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The ultimate goal of this project is to allow Minecraft: Bedrock Edition users t

Special thanks to the DragonProxy project for being a trailblazer in protocol translation and for all the team members who have now joined us here!

### Currently supporting Minecraft Bedrock v1.14.6(0) and Minecraft Java v1.15.2.
### Currently supporting Minecraft Bedrock v1.16.0/1 and Minecraft Java v1.16.1.

## Setting Up
Take a look [here](https://github.com/GeyserMC/Geyser/wiki#Setup) for how to set up Geyser.
Expand Down
8 changes: 6 additions & 2 deletions bootstrap/bungeecord/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<parent>
<groupId>org.geysermc</groupId>
<artifactId>bootstrap-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
<relativePath>../</relativePath>
</parent>
<artifactId>bootstrap-bungeecord</artifactId>
<dependencies>
<dependency>
<groupId>org.geysermc</groupId>
<artifactId>connector</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -65,6 +65,10 @@
<pattern>io.netty</pattern>
<shadedPattern>org.geysermc.platform.bungeecord.shaded.netty</shadedPattern>
</relocation>
<relocation>
<pattern>org.reflections.reflections</pattern>
<shadedPattern>org.geysermc.platform.bungeecord.shaded.reflections</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* Copyright (c) 2019-2020 GeyserMC. http://geysermc.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @author GeyserMC
* @link https://github.com/GeyserMC/Geyser
*
*/

package org.geysermc.platform.bungeecord;

import lombok.Getter;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.plugin.Plugin;
import org.geysermc.connector.dump.BootstrapDumpInfo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Getter
public class GeyserBungeeDumpInfo extends BootstrapDumpInfo {

private String platformName;
private String platformVersion;
private boolean onlineMode;
private List<ListenerInfo> listeners;
private List<PluginInfo> plugins;

GeyserBungeeDumpInfo(ProxyServer proxy) {
super();
this.platformName = proxy.getName();
this.platformVersion = proxy.getVersion();
this.onlineMode = proxy.getConfig().isOnlineMode();
this.listeners = new ArrayList<>();
this.plugins = new ArrayList<>();

for (net.md_5.bungee.api.config.ListenerInfo listener : proxy.getConfig().getListeners()) {
this.listeners.add(new ListenerInfo(listener.getHost().getHostString(), listener.getHost().getPort()));
}

for (Plugin plugin : proxy.getPluginManager().getPlugins()) {
this.plugins.add(new PluginInfo(true, plugin.getDescription().getName(), plugin.getDescription().getVersion(), plugin.getDescription().getMain(), Arrays.asList(plugin.getDescription().getAuthor())));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

package org.geysermc.platform.bungeecord;

import org.geysermc.common.main.IGeyserMain;
import org.geysermc.connector.common.main.IGeyserMain;

public class GeyserBungeeMain extends IGeyserMain {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import net.md_5.bungee.api.event.ProxyPingEvent;
import net.md_5.bungee.api.plugin.Listener;
import net.md_5.bungee.protocol.ProtocolConstants;
import org.geysermc.common.ping.GeyserPingInfo;
import org.geysermc.connector.common.ping.GeyserPingInfo;
import org.geysermc.connector.ping.IGeyserPingPassthrough;

import java.net.Inet4Address;
Expand All @@ -60,14 +60,15 @@ public GeyserPingInfo getPingInformation() {
else future.complete(event);
}));
ProxyPingEvent event = future.join();
ServerPing response = event.getResponse();
GeyserPingInfo geyserPingInfo = new GeyserPingInfo(
event.getResponse().getDescription(),
event.getResponse().getPlayers().getOnline(),
event.getResponse().getPlayers().getMax()
response.getDescriptionComponent().toLegacyText(),
new GeyserPingInfo.Players(response.getPlayers().getMax(), response.getPlayers().getOnline()),
new GeyserPingInfo.Version(response.getVersion().getName(), response.getVersion().getProtocol())
);
if (event.getResponse().getPlayers().getSample() != null) {
Arrays.stream(event.getResponse().getPlayers().getSample()).forEach(proxiedPlayer -> {
geyserPingInfo.addPlayer(proxiedPlayer.getName());
geyserPingInfo.getPlayerList().add(proxiedPlayer.getName());
});
}
return geyserPingInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@
import net.md_5.bungee.config.Configuration;
import net.md_5.bungee.config.ConfigurationProvider;
import net.md_5.bungee.config.YamlConfiguration;
import org.geysermc.common.PlatformType;
import org.geysermc.connector.common.PlatformType;
import org.geysermc.connector.GeyserConnector;
import org.geysermc.connector.bootstrap.GeyserBootstrap;
import org.geysermc.connector.command.CommandManager;
import org.geysermc.connector.configuration.GeyserConfiguration;
import org.geysermc.connector.dump.BootstrapDumpInfo;
import org.geysermc.connector.ping.GeyserLegacyPingPassthrough;
import org.geysermc.connector.ping.IGeyserPingPassthrough;
import org.geysermc.connector.utils.FileUtils;
import org.geysermc.connector.utils.LanguageUtils;
import org.geysermc.platform.bungeecord.command.GeyserBungeeCommandExecutor;
import org.geysermc.platform.bungeecord.command.GeyserBungeeCommandManager;

Expand Down Expand Up @@ -70,7 +72,7 @@ public void onEnable() {
this.geyserConfig = FileUtils.loadConfig(configFile, GeyserBungeeConfiguration.class);
configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(new File(getDataFolder(), "config.yml"));
} catch (IOException ex) {
getLogger().log(Level.WARNING, "Failed to read/create config.yml! Make sure it's up to date and/or readable+writable!", ex);
getLogger().log(Level.WARNING, LanguageUtils.getLocaleStringLog("geyser.config.failed"), ex);
ex.printStackTrace();
}

Expand All @@ -92,7 +94,7 @@ public void onEnable() {
GeyserConfiguration.checkGeyserConfiguration(geyserConfig, geyserLogger);

if (geyserConfig.getRemote().getAuthType().equals("floodgate") && getProxy().getPluginManager().getPlugin("floodgate-bungee") == null) {
geyserLogger.severe("Auth type set to Floodgate but Floodgate not found! Disabling...");
geyserLogger.severe(LanguageUtils.getLocaleStringLog("geyser.bootstrap.floodgate.not_installed") + " " + LanguageUtils.getLocaleStringLog("geyser.bootstrap.floodgate.disabling"));
return;
}

Expand Down Expand Up @@ -140,4 +142,9 @@ public IGeyserPingPassthrough getGeyserPingPassthrough() {
public Path getConfigFolder() {
return getDataFolder().toPath();
}

@Override
public BootstrapDumpInfo getDumpInfo() {
return new GeyserBungeeDumpInfo(getProxy());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

import org.geysermc.connector.GeyserConnector;
import org.geysermc.connector.command.GeyserCommand;
import org.geysermc.connector.network.session.GeyserSession;
import org.geysermc.connector.utils.LanguageUtils;

import java.util.ArrayList;
import java.util.Arrays;
Expand All @@ -52,7 +54,14 @@ public void execute(CommandSender sender, String[] args) {
if (args.length > 0) {
if (getCommand(args[0]) != null) {
if (!sender.hasPermission(getCommand(args[0]).getPermission())) {
sender.sendMessage(TextComponent.fromLegacyText(ChatColor.RED + "You do not have permission to execute this command!"));
String message = "";
if (sender instanceof GeyserSession) {
message = LanguageUtils.getPlayerLocaleString("geyser.bootstrap.command.permission_fail", ((GeyserSession) sender).getClientData().getLanguageCode());
} else {
message = LanguageUtils.getLocaleStringLog("geyser.bootstrap.command.permission_fail");
}

sender.sendMessage(TextComponent.fromLegacyText(ChatColor.RED + message));
return;
}
getCommand(args[0]).execute(new BungeeCommandSender(sender), args);
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<relativePath>../</relativePath>
</parent>
<artifactId>bootstrap-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
<packaging>pom</packaging>
<repositories>
<repository>
Expand All @@ -35,8 +35,8 @@
</repository>
</repositories>
<modules>
<module>bukkit</module>
<module>bungeecord</module>
<module>spigot</module>
<module>sponge</module>
<module>standalone</module>
<module>velocity</module>
Expand Down
20 changes: 12 additions & 8 deletions bootstrap/bukkit/pom.xml → bootstrap/spigot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<parent>
<groupId>org.geysermc</groupId>
<artifactId>bootstrap-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
<relativePath>../</relativePath>
</parent>
<artifactId>bootstrap-bukkit</artifactId>
<artifactId>bootstrap-spigot</artifactId>
<dependencies>
<dependency>
<groupId>org.geysermc</groupId>
<artifactId>connector</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -31,7 +31,7 @@
</dependency>
</dependencies>
<build>
<finalName>${outputName}-Bukkit</finalName>
<finalName>${outputName}-Spigot</finalName>
<resources>
<resource>
<directory>src/main/resources/</directory>
Expand All @@ -46,7 +46,7 @@
<configuration>
<archive>
<manifestEntries>
<Main-Class>org.geysermc.platform.bukkit.GeyserBukkitMain</Main-Class>
<Main-Class>org.geysermc.platform.spigot.GeyserSpigotMain</Main-Class>
</manifestEntries>
</archive>
</configuration>
Expand All @@ -65,15 +65,19 @@
<relocations>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>org.geysermc.platform.bukkit.shaded.netty</shadedPattern>
<shadedPattern>org.geysermc.platform.spigot.shaded.netty</shadedPattern>
</relocation>
<relocation>
<pattern>it.unimi.dsi.fastutil</pattern>
<shadedPattern>org.geysermc.platform.bukkit.shaded.fastutil</shadedPattern>
<shadedPattern>org.geysermc.platform.spigot.shaded.fastutil</shadedPattern>
</relocation>
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>org.geysermc.platform.bukkit.shaded.jackson</shadedPattern>
<shadedPattern>org.geysermc.platform.spigot.shaded.jackson</shadedPattern>
</relocation>
<relocation>
<pattern>org.reflections.reflections</pattern>
<shadedPattern>org.geysermc.platform.spigot.shaded.reflections</shadedPattern>
</relocation>
</relocations>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @link https://github.com/GeyserMC/Geyser
*/

package org.geysermc.platform.bukkit;
package org.geysermc.platform.spigot;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand All @@ -38,14 +38,14 @@

@Getter
@JsonIgnoreProperties(ignoreUnknown = true)
public class GeyserBukkitConfiguration extends GeyserJacksonConfiguration {
public class GeyserSpigotConfiguration extends GeyserJacksonConfiguration {

@JsonProperty("floodgate-key-file")
private String floodgateKeyFile;

private Path floodgateKey;

public void loadFloodgate(GeyserBukkitPlugin plugin) {
public void loadFloodgate(GeyserSpigotPlugin plugin) {
Plugin floodgate = Bukkit.getPluginManager().getPlugin("floodgate-bukkit");
floodgateKey = FloodgateKeyLoader.getKey(plugin.getGeyserLogger(), this, Paths.get(plugin.getDataFolder().toString(), plugin.getConfig().getString("floodgate-key-file", "public-key.pem")), floodgate, floodgate != null ? floodgate.getDataFolder().toPath() : null);
}
Expand Down
Loading