-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Aelysium-Group/development
- Added Folia Implementation - Updated /tpa to work with Folia - Rewrite base-level RC core api - Remove garbage debug logs (woops!) - Fix null API call on Proxy heartbeat init
- Loading branch information
Showing
63 changed files
with
1,064 additions
and
795 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
34 changes: 0 additions & 34 deletions
34
core/src/main/java/group/aelysium/rustyconnector/core/RustyConnector.java
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
core/src/main/java/group/aelysium/rustyconnector/core/central/PluginAPI.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package group.aelysium.rustyconnector.core.central; | ||
|
||
import group.aelysium.rustyconnector.core.lib.model.VirtualProcessor; | ||
|
||
import java.io.InputStream; | ||
|
||
public abstract class PluginAPI<S> { | ||
/** | ||
* Gets a resource by name and returns it as a stream. | ||
* @param filename The name of the resource to get. | ||
* @return The resource as a stream. | ||
*/ | ||
abstract public InputStream getResourceAsStream(String filename); | ||
|
||
abstract public S getScheduler(); | ||
|
||
abstract public PluginLogger getLogger(); | ||
|
||
abstract public VirtualProcessor getVirtualProcessor(); | ||
|
||
abstract public String getDataFolder(); | ||
} |
18 changes: 18 additions & 0 deletions
18
core/src/main/java/group/aelysium/rustyconnector/core/central/PluginLifecycle.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package group.aelysium.rustyconnector.core.central; | ||
|
||
import group.aelysium.rustyconnector.core.lib.exception.DuplicateLifecycleException; | ||
|
||
public abstract class PluginLifecycle { | ||
protected boolean isRunning = false; | ||
|
||
public boolean isRunning() { | ||
return this.isRunning; | ||
} | ||
|
||
public abstract boolean start() throws DuplicateLifecycleException; | ||
public abstract void stop(); | ||
|
||
protected abstract boolean loadConfigs(); | ||
protected abstract boolean loadCommands(); | ||
protected abstract boolean loadEvents(); | ||
} |
5 changes: 3 additions & 2 deletions
5
...ector/core/lib/lang_messaging/Logger.java → ...yconnector/core/central/PluginLogger.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
15 changes: 15 additions & 0 deletions
15
core/src/main/java/group/aelysium/rustyconnector/core/central/PluginRuntime.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package group.aelysium.rustyconnector.core.central; | ||
|
||
import group.aelysium.rustyconnector.core.lib.database.Redis; | ||
|
||
public interface PluginRuntime { | ||
Redis redis = null; | ||
|
||
static PluginAPI<?> getAPI() { | ||
return null; | ||
} | ||
|
||
static PluginLifecycle getLifecycle() { | ||
return null; | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
...in/java/group/aelysium/rustyconnector/core/lib/exception/DuplicateLifecycleException.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package group.aelysium.rustyconnector.core.lib.exception; | ||
|
||
public class DuplicateLifecycleException extends Exception { | ||
public DuplicateLifecycleException(String errorMessage) { | ||
super(errorMessage); | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...rustyconnector/core/lib/model/Server.java → ...onnector/core/lib/model/PlayerServer.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
4 changes: 4 additions & 0 deletions
4
core/src/main/java/group/aelysium/rustyconnector/core/lib/model/VirtualProcessor.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package group.aelysium.rustyconnector.core.lib.model; | ||
|
||
public interface VirtualProcessor { | ||
} |
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
Oops, something went wrong.