mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Merge https://github.com/EssentialsX/Essentials into 1.16
This commit is contained in:
commit
a60c05fec5
4 changed files with 9 additions and 3 deletions
|
@ -26,7 +26,7 @@ public class Commandgamemode extends EssentialsLoopCommand {
|
|||
} else if (args.length == 1) {
|
||||
loopOnlinePlayersConsumer(server, sender, false, true, args[0], user -> setUserGamemode(sender, matchGameMode(commandLabel), user));
|
||||
} else if (args.length == 2) {
|
||||
loopOnlinePlayersConsumer(server, sender, false, true, args[1], user -> setUserGamemode(sender, matchGameMode(commandLabel), user));
|
||||
loopOnlinePlayersConsumer(server, sender, false, true, args[1], user -> setUserGamemode(sender, matchGameMode(args[0]), user));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ public class Commandgamemode extends EssentialsLoopCommand {
|
|||
|
||||
private GameMode matchGameMode(String modeString) throws NotEnoughArgumentsException {
|
||||
GameMode mode = null;
|
||||
modeString = modeString.toLowerCase();
|
||||
if (modeString.equalsIgnoreCase("gmc") || modeString.equalsIgnoreCase("egmc") || modeString.contains("creat") || modeString.equalsIgnoreCase("1") || modeString.equalsIgnoreCase("c")) {
|
||||
mode = GameMode.CREATIVE;
|
||||
} else if (modeString.equalsIgnoreCase("gms") || modeString.equalsIgnoreCase("egms") || modeString.contains("survi") || modeString.equalsIgnoreCase("0") || modeString.equalsIgnoreCase("s")) {
|
||||
|
|
|
@ -276,6 +276,11 @@ public class FakeWorld implements World {
|
|||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setSpawnLocation(int i, int i1, int i2, float v) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setSpawnLocation(int i, int i1, int i2) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
|
|
|
@ -992,7 +992,7 @@ protect:
|
|||
# Which blocks should people be prevented from breaking?
|
||||
break:
|
||||
|
||||
# Which blocks should not be pushed by pistons?
|
||||
# Which blocks should not be moved by pistons?
|
||||
piston:
|
||||
|
||||
# Which blocks should not be dispensed by dispensers
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<dependency>
|
||||
<groupId>com.destroystokyo.paper</groupId>
|
||||
<artifactId>paper-api</artifactId>
|
||||
<version>1.15.2-R0.1-SNAPSHOT</version>
|
||||
<version>1.16.1-R0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
Loading…
Reference in a new issue