Skip to content

Commit

Permalink
update 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
a1640727878 committed Jun 28, 2019
1 parent aa8917a commit 1682999
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.8.0_212"/>
<classpathentry kind="lib" path="/Libs/spigot-1.12.2.jar"/>
<classpathentry kind="lib" path="/Libs/spigot-1.13.2.jar"/>
<classpathentry kind="lib" path="/Libs/spigot-1.13.jar"/>
<classpathentry kind="lib" path="/Libs/BaiTeam/PlaceholderAPI-2.10.2.jar"/>
<classpathentry kind="lib" path="/Libs/BaiTeam/[副本]DungeonsXL-0.17.7.jar"/>
<classpathentry kind="lib" path="/Libs/spigot-1.11.jar"/>
<classpathentry kind="lib" path="/Libs/spigot-1.13.2.jar"/>
<classpathentry kind="lib" path="/Libs/spigot-1.13.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 1 addition & 1 deletion bin/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: BaiTeam
main: sky_bai.bukkit.baiteam.BaiTeamMain
api-version: 1.13
version: 0.0.3
version: 0.0.4
author: sky_bai
prefix: BaiTeam
depend: ["DungeonsXL","PlaceholderAPI"]
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/sky_bai/bukkit/baiteam/listener/BaiListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerSwapHandItemsEvent;

Expand All @@ -16,6 +17,19 @@

public class BaiListener implements Listener {

@EventHandler
public void PlayerCommand(PlayerCommandPreprocessEvent event) {
Player player = event.getPlayer();
if (event.getMessage().contains("/dxl play")) {
if (player.isOp()) {
return;
}
event.setCancelled(true);
Bukkit.dispatchCommand(player, "/baiteam game play"+event.getMessage().replace("/dxl play", ""));
return;
}
}

@EventHandler
public void PlayerSwapHand(PlayerSwapHandItemsEvent event) {
Player player = event.getPlayer();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: BaiTeam
main: sky_bai.bukkit.baiteam.BaiTeamMain
api-version: 1.13
version: 0.0.3
version: 0.0.4
author: sky_bai
prefix: BaiTeam
depend: ["DungeonsXL","PlaceholderAPI"]
Expand Down

0 comments on commit 1682999

Please sign in to comment.