Item market value indexing added
This commit is contained in:
parent
10fca98300
commit
10c011ede1
15 changed files with 38 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6
.idea/copilot.data.migration.agent.xml
generated
Normal file
6
.idea/copilot.data.migration.agent.xml
generated
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AgentMigrationStateService">
|
||||
<option name="migrationStatus" value="COMPLETED" />
|
||||
</component>
|
||||
</project>
|
||||
2
.idea/gradle.xml
generated
2
.idea/gradle.xml
generated
|
|
@ -5,7 +5,7 @@
|
|||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleJvm" value="21" />
|
||||
<option name="gradleJvm" value="temurin-22" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
|
|
|
|||
BIN
build/libs/GrimmsServer-1.2.jar
Normal file
BIN
build/libs/GrimmsServer-1.2.jar
Normal file
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,31 @@
|
|||
package org.gsdistance.grimmsServer.Commands.HomeCommand;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.gsdistance.grimmsServer.Constructable.Location;
|
||||
import org.gsdistance.grimmsServer.Constructable.Player.PlayerMetadata;
|
||||
|
||||
public class Sethome {
|
||||
@SuppressWarnings("SameReturnValue")
|
||||
public static boolean SubCommand(Player player, String[] args) {
|
||||
String homeName = "home";
|
||||
if (args.length > 1) {
|
||||
homeName = args[1].toLowerCase();
|
||||
}
|
||||
PlayerMetadata meta = PlayerMetadata.getPlayerMetadata(player);
|
||||
|
||||
// Check multiHome permission
|
||||
boolean hasMultiHome = player.hasPermission("grimmsserver.multiHome");
|
||||
if (!hasMultiHome) {
|
||||
// Only allow one home (named "home" or the first set)
|
||||
if (!meta.homes.isEmpty() && !meta.homes.containsKey(homeName)) {
|
||||
player.sendMessage("You do not have permission to set multiple homes.");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
meta.homes.put(homeName, new Location(player.getLocation()));
|
||||
meta.saveToPDS();
|
||||
player.sendMessage("Home '" + homeName + "' set!");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue