Skip to content

Commit

Permalink
Adapt players & consoles so they can be extended
Browse files Browse the repository at this point in the history
  • Loading branch information
xDec0de committed Nov 17, 2024
1 parent da3a881 commit 3b4b689
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ public class SpigotConsole implements MCConsole {

private final ConsoleCommandSender handle;

SpigotConsole(@NotNull ConsoleCommandSender handle) {
protected SpigotConsole(@NotNull ConsoleCommandSender handle) {
this.handle = handle;
}

@NotNull
@Override
public ConsoleCommandSender getHandle() {
public final ConsoleCommandSender getHandle() {
return handle;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SpigotPlayer implements MCPlayer {

private final Player handle;

SpigotPlayer(@NotNull Player handle) {
protected SpigotPlayer(@NotNull Player handle) {
this.handle = handle;
}

Expand All @@ -28,7 +28,7 @@ public class SpigotPlayer implements MCPlayer {

@NotNull
@Override
public Player getHandle() {
public final Player getHandle() {
return handle;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ public class VelocityConsole implements MCConsole {

private final ConsoleCommandSource handle;

VelocityConsole(@NotNull ConsoleCommandSource handle) {
protected VelocityConsole(@NotNull ConsoleCommandSource handle) {
this.handle = handle;
}

@NotNull
@Override
public ConsoleCommandSource getHandle() {
public final ConsoleCommandSource getHandle() {
return handle;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class VelocityPlayer implements MCPlayer {

private final Player handle;

public VelocityPlayer(@NotNull Player handle) {
protected VelocityPlayer(@NotNull Player handle) {
this.handle = handle;
}

Expand All @@ -24,7 +24,7 @@ public VelocityPlayer(@NotNull Player handle) {

@NotNull
@Override
public Player getHandle() {
public final Player getHandle() {
return handle;
}

Expand Down

0 comments on commit 3b4b689

Please sign in to comment.