-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed the teamviewer to teammarker
- Loading branch information
Showing
13 changed files
with
62 additions
and
65 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
10 changes: 5 additions & 5 deletions
10
...kkitapi/teamviewer/TeamViewerManager.java → ...kkitapi/teammarker/TeamMarkerManager.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,24 +1,24 @@ | ||
package net.badlion.bukkitapi.teamviewer; | ||
package net.badlion.bukkitapi.teammarker; | ||
|
||
import net.badlion.bukkitapi.AbstractBukkitBadlionPlugin; | ||
import net.badlion.modapicommon.AbstractBadlionApi; | ||
import net.badlion.modapicommon.mods.ModType; | ||
import net.badlion.modapicommon.utility.AbstractTeamViewerManager; | ||
import net.badlion.modapicommon.utility.AbstractTeamMarkerManager; | ||
import net.badlion.modapicommon.utility.TeamMemberLocation; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public class TeamViewerManager extends AbstractTeamViewerManager { | ||
public class TeamMarkerManager extends AbstractTeamMarkerManager { | ||
|
||
private final AbstractBukkitBadlionPlugin apiBukkit; | ||
|
||
public TeamViewerManager(AbstractBukkitBadlionPlugin apiBukkit) { | ||
public TeamMarkerManager(AbstractBukkitBadlionPlugin apiBukkit) { | ||
this.apiBukkit = apiBukkit; | ||
} | ||
|
||
@Override | ||
public void sendLocations(UUID player, List<TeamMemberLocation> locations) { | ||
this.apiBukkit.getMessageSender().sendModData(player, ModType.TEAM_VIEWER, AbstractBadlionApi.GSON_NON_PRETTY.toJsonTree(locations)); | ||
this.apiBukkit.getMessageSender().sendModData(player, ModType.TEAM_MARKER, AbstractBadlionApi.GSON_NON_PRETTY.toJsonTree(locations)); | ||
} | ||
} |
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
bungee/src/main/java/net/badlion/bungeeapi/teammarker/UnsupportedTeamMarkerManager.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 net.badlion.bungeeapi.teammarker; | ||
|
||
import net.badlion.modapicommon.utility.AbstractTeamMarkerManager; | ||
import net.badlion.modapicommon.utility.TeamMemberLocation; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public class UnsupportedTeamMarkerManager extends AbstractTeamMarkerManager { | ||
|
||
@Override | ||
public void sendLocations(UUID player, List<TeamMemberLocation> locations) { | ||
throw new UnsupportedOperationException("Team Marker mod hooks are not supported on bungee!"); | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
bungee/src/main/java/net/badlion/bungeeapi/teamviewer/UnsupportedTeamViewerManager.java
This file was deleted.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
velocity/src/main/java/net/badlion/velocityapi/teammarker/UnsupportedTeamMarkerManager.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 net.badlion.velocityapi.teammarker; | ||
|
||
import net.badlion.modapicommon.utility.AbstractTeamMarkerManager; | ||
import net.badlion.modapicommon.utility.TeamMemberLocation; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
public class UnsupportedTeamMarkerManager extends AbstractTeamMarkerManager { | ||
|
||
@Override | ||
public void sendLocations(UUID player, List<TeamMemberLocation> locations) { | ||
throw new UnsupportedOperationException("Team Marker mod hooks are not supported on bungee!"); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
velocity/src/main/java/net/badlion/velocityapi/teamviewer/UnsupportedTeamViewerManager.java
This file was deleted.
Oops, something went wrong.