Skip to content

Commit

Permalink
Merge pull request tebexio#190 from TebexOllie/offline-uuid-replacement
Browse files Browse the repository at this point in the history
Offline UUID replacement
  • Loading branch information
liam-wiltshire authored Dec 6, 2021
2 parents 4c2cdb0 + 570306d commit aaee088
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bukkit-post-1.13/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion bukkit-pre-1.13/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion bukkit-shared/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion bungeecord/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class UuidPlaceholder implements Placeholder {
@Override
public String replace(String command, QueuedPlayer player, QueuedCommand queuedCommand) {
if (player.getUuid() == null) {
return command; // can't replace UUID for offline mode
return REPLACE_UUID.matcher(command).replaceAll(player.getName());
}
return REPLACE_UUID.matcher(command).replaceAll(UuidUtil.mojangUuidToJavaUuid(player.getUuid()).toString());
}
Expand Down
2 changes: 1 addition & 1 deletion nukkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion plugin-shared/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>net.buycraft</groupId>
<artifactId>BuycraftX</artifactId>
<packaging>pom</packaging>
<version>12.0.7</version>
<version>12.0.8</version>
<modules>
<module>common</module>
<module>bukkit-shared</module>
Expand Down
2 changes: 1 addition & 1 deletion sponge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion velocity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>BuycraftX</artifactId>
<groupId>net.buycraft</groupId>
<version>12.0.7</version>
<version>12.0.8</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit aaee088

Please sign in to comment.