Add option to configure listing fake players on the multiplayer screen (#1756)
This commit is contained in:
1 parent
b1cc289a49
commit
efddb904a0
2 files changed
+8
No files matched your search
@@ -597,6 +597,9 @@ public class CarpetSettings
|
|||||||
@Rule(desc = "Spawn offline players in online mode if online-mode player with specified name does not exist", category = COMMAND)
|
@Rule(desc = "Spawn offline players in online mode if online-mode player with specified name does not exist", category = COMMAND)
|
||||||
public static boolean allowSpawningOfflinePlayers = true;
|
public static boolean allowSpawningOfflinePlayers = true;
|
||||||
|
|
||||||
|
@Rule(desc = "Allows listing fake players on the multiplayer screen", category = COMMAND)
|
||||||
|
public static boolean allowListingFakePlayers = false;
|
||||||
|
|
||||||
@Rule(desc = "Allows to track mobs AI via /track command", category = COMMAND)
|
@Rule(desc = "Allows to track mobs AI via /track command", category = COMMAND)
|
||||||
public static String commandTrackAI = "ops";
|
public static String commandTrackAI = "ops";
|
||||||
|
|
||||||
|
|||||||
@@ -190,6 +190,11 @@ public class EntityPlayerMPFake extends ServerPlayer
|
|||||||
return "127.0.0.1";
|
return "127.0.0.1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean allowsListing() {
|
||||||
|
return CarpetSettings.allowListingFakePlayers;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void checkFallDamage(double y, boolean onGround, BlockState state, BlockPos pos) {
|
protected void checkFallDamage(double y, boolean onGround, BlockState state, BlockPos pos) {
|
||||||
doCheckFallDamage(0.0, y, 0.0, onGround);
|
doCheckFallDamage(0.0, y, 0.0, onGround);
|
||||||
|
|||||||
Reference in new issue
Block a user