This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from CherryCraftMC/ServerNameChange
Rename package from 'reefrealm' to 'cherrycraft'
- Loading branch information
Showing
18 changed files
with
88 additions
and
93 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
...ealm/reefrealmskypvp/ReefRealmSkyPVP.java → ...herrycraft/cherryskypvp/CherrySkyPVP.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
26 changes: 13 additions & 13 deletions
26
...net/reefrealm/reefrealmskypvp/Loader.java → .../net/cherrycraft/cherryskypvp/Loader.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
6 changes: 3 additions & 3 deletions
6
...skypvp/bounty/commands/BountyCommand.java → ...skypvp/bounty/commands/BountyCommand.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
2 changes: 1 addition & 1 deletion
2
...reefrealm/reefrealmskypvp/data/MySQL.java → .../cherrycraft/cherryskypvp/data/MySQL.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
7 changes: 2 additions & 5 deletions
7
.../reefrealmskypvp/economy/CoinsSystem.java → ...aft/cherryskypvp/economy/CoinsSystem.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
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
2 changes: 1 addition & 1 deletion
2
...realmskypvp/launcher/LaunchpadSystem.java → ...herryskypvp/launcher/LaunchpadSystem.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
4 changes: 2 additions & 2 deletions
4
...lm/reefrealmskypvp/level/LevelSystem.java → ...craft/cherryskypvp/level/LevelSystem.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
2 changes: 1 addition & 1 deletion
2
...efrealmskypvp/manager/CommandManager.java → .../cherryskypvp/manager/CommandManager.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
6 changes: 3 additions & 3 deletions
6
...aceholders/StatsPlaceholderExpansion.java → ...aceholders/StatsPlaceholderExpansion.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
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
35 changes: 35 additions & 0 deletions
35
src/main/java/net/cherrycraft/cherryskypvp/spawn/SetSpawnCommand.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,35 @@ | ||
package net.cherrycraft.cherryskypvp.spawn; | ||
|
||
import net.cherrycraft.cherryskypvp.CherrySkyPVP; | ||
import net.cherrycraft.cherryskypvp.manager.CommandManager; | ||
import org.bukkit.Location; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.entity.Player; | ||
|
||
public class SetSpawnCommand extends CommandManager { | ||
public SetSpawnCommand(String commandName) { | ||
super("setspawn"); | ||
setPermission("reefrealmskypvp.setspawn"); | ||
} | ||
|
||
@Override | ||
public void execute(CommandSender sender, String[] args) { | ||
if (!(sender instanceof Player)) { | ||
sender.sendMessage("This command can only be executed by a player."); | ||
return; | ||
} | ||
|
||
Player player = (Player) sender; | ||
Location location = player.getLocation(); | ||
|
||
CherrySkyPVP.getInstance().getConfig().set("spawn.world", location.getWorld().getName()); | ||
CherrySkyPVP.getInstance().getConfig().set("spawn.x", location.getX()); | ||
CherrySkyPVP.getInstance().getConfig().set("spawn.y", location.getY()); | ||
CherrySkyPVP.getInstance().getConfig().set("spawn.z", location.getZ()); | ||
CherrySkyPVP.getInstance().getConfig().set("spawn.yaw", location.getYaw()); | ||
CherrySkyPVP.getInstance().getConfig().set("spawn.pitch", location.getPitch()); | ||
|
||
CherrySkyPVP.getInstance().saveConfig(); | ||
player.sendMessage("Spawn location saved."); | ||
} | ||
} |
7 changes: 3 additions & 4 deletions
7
...lm/reefrealmskypvp/stats/SkyPVPStats.java → ...craft/cherryskypvp/stats/SkyPVPStats.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
2 changes: 1 addition & 1 deletion
2
...eefrealm/reefrealmskypvp/store/Store.java → ...cherrycraft/cherryskypvp/store/Store.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
2 changes: 1 addition & 1 deletion
2
.../reefrealmskypvp/trading/TradeSystem.java → ...aft/cherryskypvp/trading/TradeSystem.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
35 changes: 0 additions & 35 deletions
35
src/main/java/net/reefrealm/reefrealmskypvp/spawn/SetSpawnCommand.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