-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
13 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 1 addition & 9 deletions
10
plugin/src/main/java/dev/httpmarco/polocloud/plugin/fabric/FabricPlatformBootstrap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
package dev.httpmarco.polocloud.plugin.fabric; | ||
|
||
import dev.httpmarco.osgan.networking.ClassSupplier; | ||
import dev.httpmarco.polocloud.api.CloudAPI; | ||
import dev.httpmarco.polocloud.plugin.PluginPlatform; | ||
import net.fabricmc.api.ModInitializer; | ||
|
||
public final class FabricPlatformBootstrap implements ModInitializer, ClassSupplier { | ||
public final class FabricPlatformBootstrap implements ModInitializer { | ||
|
||
private final PluginPlatform platform = new PluginPlatform(); | ||
|
||
@Override | ||
public void onInitialize() { | ||
platform.presentServiceAsOnline(); | ||
|
||
CloudAPI.instance().classSupplier(this); | ||
} | ||
|
||
@Override | ||
public Class<?> classByName(String name) throws ClassNotFoundException { | ||
return Class.forName(name); | ||
} | ||
} |
10 changes: 1 addition & 9 deletions
10
plugin/src/main/java/dev/httpmarco/polocloud/plugin/nukkit/NukkitPlatformBootstrap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
package dev.httpmarco.polocloud.plugin.nukkit; | ||
|
||
import cn.nukkit.plugin.PluginBase; | ||
import dev.httpmarco.osgan.networking.ClassSupplier; | ||
import dev.httpmarco.polocloud.api.CloudAPI; | ||
import dev.httpmarco.polocloud.plugin.PluginPlatform; | ||
|
||
public final class NukkitPlatformBootstrap extends PluginBase implements ClassSupplier { | ||
public final class NukkitPlatformBootstrap extends PluginBase { | ||
|
||
private final PluginPlatform platform = new PluginPlatform(); | ||
|
||
@Override | ||
public void onEnable() { | ||
platform.presentServiceAsOnline(); | ||
|
||
CloudAPI.instance().classSupplier(this); | ||
} | ||
|
||
@Override | ||
public Class<?> classByName(String name) throws ClassNotFoundException { | ||
return Class.forName(name); | ||
} | ||
} |
10 changes: 1 addition & 9 deletions
10
plugin/src/main/java/dev/httpmarco/polocloud/plugin/spigot/SpigotPlatformBootstrap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
package dev.httpmarco.polocloud.plugin.spigot; | ||
|
||
import dev.httpmarco.osgan.networking.ClassSupplier; | ||
import dev.httpmarco.polocloud.api.CloudAPI; | ||
import dev.httpmarco.polocloud.plugin.PluginPlatform; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
public final class SpigotPlatformBootstrap extends JavaPlugin implements ClassSupplier { | ||
public final class SpigotPlatformBootstrap extends JavaPlugin { | ||
|
||
private final PluginPlatform platform = new PluginPlatform(); | ||
|
||
@Override | ||
public void onEnable() { | ||
platform.presentServiceAsOnline(); | ||
|
||
CloudAPI.instance().classSupplier(this); | ||
} | ||
|
||
@Override | ||
public Class<?> classByName(String name) throws ClassNotFoundException { | ||
return Class.forName(name); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters