From 3f4c3043e27410def90ececd1f38370c965b0891 Mon Sep 17 00:00:00 2001 From: rlf Date: Tue, 30 Dec 2014 12:06:05 +0100 Subject: [PATCH] HotFix of setwarp --- .travis.yml | 6 ++---- .../ultimateskyblock/command/island/SetWarpCommand.java | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b5cfec4cf..a3b5edffa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,7 @@ language: java -jdk: -- oraclejdk7 cache: directories: - - "$HOME/.m2" + - "$HOME/.m2" env: global: secure: dGzZ9hl0ezUCYs72+Z4LUgtny0qsUn3HibpBKo4hriRPMY8EQqaJfi1ZDQTKr3ctjJMtQtcgnlC0BujEV+1W2tObjSJsCAdEbzKYZijwRXSK5jT1sua3EQScKYelpv0z4fd9LIYJJ95xwXMNMmAFSjdu3fRDkxtGgIIKbka8YiE= @@ -14,4 +12,4 @@ deploy: skip_cleanup: true on: tags: true - all_branches: true \ No newline at end of file + branch: master \ No newline at end of file diff --git a/src/main/java/us/talabrek/ultimateskyblock/command/island/SetWarpCommand.java b/src/main/java/us/talabrek/ultimateskyblock/command/island/SetWarpCommand.java index 1180198d6..bdeddc0da 100644 --- a/src/main/java/us/talabrek/ultimateskyblock/command/island/SetWarpCommand.java +++ b/src/main/java/us/talabrek/ultimateskyblock/command/island/SetWarpCommand.java @@ -15,6 +15,7 @@ public SetWarpCommand(uSkyBlock plugin) { @Override protected boolean doExecute(String alias, Player player, PlayerInfo pi, IslandInfo island, Map data, String... args) { if (island.hasPerm(player, "canChangeWarp")) { + island.setWarpLocation(player.getLocation()); island.sendMessageToIslandGroup(player.getName() + " changed the island warp location."); } else { player.sendMessage("\u00a7cYou do not have permission to set your island's warp point!");