Skip to content

Commit

Permalink
HotFix of setwarp
Browse files Browse the repository at this point in the history
  • Loading branch information
rlf committed Dec 30, 2014
1 parent e8f9ade commit 3f4c304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
language: java
jdk:
- oraclejdk7
cache:
directories:
- "$HOME/.m2"
- "$HOME/.m2"
env:
global:
secure: dGzZ9hl0ezUCYs72+Z4LUgtny0qsUn3HibpBKo4hriRPMY8EQqaJfi1ZDQTKr3ctjJMtQtcgnlC0BujEV+1W2tObjSJsCAdEbzKYZijwRXSK5jT1sua3EQScKYelpv0z4fd9LIYJJ95xwXMNMmAFSjdu3fRDkxtGgIIKbka8YiE=
Expand All @@ -14,4 +12,4 @@ deploy:
skip_cleanup: true
on:
tags: true
all_branches: true
branch: master
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public SetWarpCommand(uSkyBlock plugin) {
@Override
protected boolean doExecute(String alias, Player player, PlayerInfo pi, IslandInfo island, Map<String, Object> 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!");
Expand Down

0 comments on commit 3f4c304

Please sign in to comment.