Renamed packages

This commit is contained in:
Norbi Peti 2016-11-02 23:53:22 +01:00
parent 520e54d823
commit eaa9f7f79e
7 changed files with 13 additions and 13 deletions

View file

@ -1,4 +1,4 @@
package main;
package buttondevteam.perworld.main;
import org.bukkit.plugin.java.JavaPlugin;

View file

@ -1,4 +1,4 @@
package main;
package buttondevteam.perworld.main;
import java.util.ArrayList;
import java.util.Arrays;

View file

@ -1,4 +1,4 @@
package main;
package buttondevteam.perworld.main;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;

View file

@ -1,4 +1,4 @@
package main;
package buttondevteam.perworld.main;
import java.util.Arrays;
@ -103,7 +103,7 @@ public class WorldChangeManager {
public static void updateLocation(Values values, Player player){
config.set(
values.pFrom + ".location",
serializers.location.serialize(player.getLocation())
buttondevteam.perworld.serializers.location.serialize(player.getLocation())
);
plugin.saveConfig();
/* players are not automatically moved to their stored location,
@ -115,18 +115,18 @@ public class WorldChangeManager {
//UPDATE INVENTORIES
public static void updateInventories(Values values, Player player){
IInventory inventory = ((CraftInventory) player.getInventory()).getInventory();
config.set(values.pFrom + ".inventory", serializers.inventory.serialize(inventory));
config.set(values.pFrom + ".inventory", buttondevteam.perworld.serializers.inventory.serialize(inventory));
plugin.saveConfig();
if (!values.shareinv)
serializers.inventory.setFromSerialized(
buttondevteam.perworld.serializers.inventory.setFromSerialized(
inventory, (String) config.get(values.pTo + ".inventory")
);
IInventory enderchest = ((CraftInventory) player.getEnderChest()).getInventory();
config.set(values.pFrom + ".enderchest", serializers.inventory.serialize(enderchest));
config.set(values.pFrom + ".enderchest", buttondevteam.perworld.serializers.inventory.serialize(enderchest));
plugin.saveConfig();
if (!values.sharedata)
serializers.inventory.setFromSerialized(
buttondevteam.perworld.serializers.inventory.setFromSerialized(
enderchest, (String) config.get(values.pTo + ".enderchest")
);
}
@ -134,7 +134,7 @@ public class WorldChangeManager {
//UPDATE PLAYERDATA
public static void updatePlayerData(Values values, Player player){
config.set(values.pFrom + ".playerdata", serializers.playerdata.serialize(player));
config.set(values.pFrom + ".playerdata", buttondevteam.perworld.serializers.playerdata.serialize(player));
plugin.saveConfig();
if (!values.sharedata)
;

View file

@ -1,4 +1,4 @@
package serializers;
package buttondevteam.perworld.serializers;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;

View file

@ -1,4 +1,4 @@
package serializers;
package buttondevteam.perworld.serializers;
import org.bukkit.Location;
import org.bukkit.World;

View file

@ -1,4 +1,4 @@
package serializers;
package buttondevteam.perworld.serializers;
import java.util.Arrays;