-
Notifications
You must be signed in to change notification settings - Fork 1
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 #133 from Nookure/feat/separate-paper-player-wrapp…
…er-logic-into-childrens Feat/separate paper player wrapper logic into childrens
- Loading branch information
Showing
17 changed files
with
558 additions
and
225 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
14 changes: 14 additions & 0 deletions
14
...taff-API/src/main/java/com/nookure/staff/api/annotation/staff/StaffChatAsDefaultBool.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,14 @@ | ||
package com.nookure.staff.api.annotation.staff; | ||
|
||
import com.google.inject.BindingAnnotation; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.FIELD, ElementType.PARAMETER}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@BindingAnnotation | ||
public @interface StaffChatAsDefaultBool { | ||
} |
14 changes: 14 additions & 0 deletions
14
NookureStaff-API/src/main/java/com/nookure/staff/api/annotation/staff/StaffModeBool.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,14 @@ | ||
package com.nookure.staff.api.annotation.staff; | ||
|
||
import com.google.inject.BindingAnnotation; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.FIELD, ElementType.PARAMETER}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@BindingAnnotation | ||
public @interface StaffModeBool { | ||
} |
5 changes: 4 additions & 1 deletion
5
NookureStaff-API/src/main/java/com/nookure/staff/api/extension/StaffPlayerExtension.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
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
41 changes: 41 additions & 0 deletions
41
NookureStaff-API/src/main/java/com/nookure/staff/api/extension/staff/StaffModeExtension.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,41 @@ | ||
package com.nookure.staff.api.extension.staff; | ||
|
||
import com.nookure.staff.api.StaffPlayerWrapper; | ||
import com.nookure.staff.api.extension.StaffPlayerExtension; | ||
import com.nookure.staff.api.item.StaffItem; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.Map; | ||
|
||
public abstract class StaffModeExtension extends StaffPlayerExtension { | ||
public StaffModeExtension(StaffPlayerWrapper player) { | ||
super(player); | ||
} | ||
|
||
public abstract void enableStaffMode(final boolean silentJoin); | ||
|
||
public abstract void disableStaffMode(); | ||
|
||
public abstract void checkStaffMode(); | ||
|
||
public abstract void writeStaffModeState(final boolean state); | ||
|
||
public abstract void toggleStaffMode(boolean silentJoin); | ||
|
||
public abstract boolean isStaffMode(); | ||
|
||
public abstract void setItems(); | ||
|
||
@NotNull | ||
public abstract Map<Integer, StaffItem> getItems(); | ||
|
||
public abstract void saveInventory(); | ||
|
||
public abstract void clearInventory(); | ||
|
||
public abstract void restoreInventory(); | ||
|
||
public abstract void saveLocation(); | ||
|
||
public abstract void restoreLocation(); | ||
} |
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
Oops, something went wrong.