mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +01:00
No need to check special entity name anymore with new API
This commit is contained in:
parent
2e0ea7a596
commit
d2847dd2fe
@ -5,7 +5,7 @@
|
||||
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Jobs/lib/Vault1.5.3.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Jobs/lib/mcMMO#127.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Jobs/lib/CoreProtect_2.12.0.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Jobs/lib/spigot-1.10.2.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/CheckMyInventory/lib/spigot-1.11.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Arte/Desktop/Jobs/lib/MythicMobs-2.1.8.jar"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
||||
|
1
com/gamingmesh/jobs/.gitignore
vendored
1
com/gamingmesh/jobs/.gitignore
vendored
@ -6,3 +6,4 @@
|
||||
/Jobs$1.class
|
||||
/PlayerManager$1.class
|
||||
/NMS.class
|
||||
/JobsPlugin.class
|
||||
|
5
com/gamingmesh/jobs/commands/list/.gitignore
vendored
5
com/gamingmesh/jobs/commands/list/.gitignore
vendored
@ -47,3 +47,8 @@
|
||||
/test.class
|
||||
/purge.class
|
||||
/saveall.class
|
||||
/fill.class
|
||||
/fillprot.class
|
||||
/fillprot$1.class
|
||||
/bp$1.class
|
||||
/bp.class
|
||||
|
1
com/gamingmesh/jobs/config/.gitignore
vendored
1
com/gamingmesh/jobs/config/.gitignore
vendored
@ -29,3 +29,4 @@
|
||||
/ExploreManager.class
|
||||
/BossBarManager$1.class
|
||||
/BossBarManager.class
|
||||
/BlockProtectionManager.class
|
||||
|
4
com/gamingmesh/jobs/container/.gitignore
vendored
4
com/gamingmesh/jobs/container/.gitignore
vendored
@ -37,3 +37,7 @@
|
||||
/McmmoSkill.class
|
||||
/FastPayment.class
|
||||
/TempJobProgression.class
|
||||
/BlockTimer.class
|
||||
/BlockProtection.class
|
||||
/BpDBAction.class
|
||||
/DBAction.class
|
||||
|
1
com/gamingmesh/jobs/nmsUtil/.gitignore
vendored
1
com/gamingmesh/jobs/nmsUtil/.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
/v1_7.class
|
||||
/v1_9.class
|
||||
/v1_10.class
|
||||
/v1_11.class
|
||||
|
39
com/gamingmesh/jobs/nmsUtil/v1_11.java
Normal file
39
com/gamingmesh/jobs/nmsUtil/v1_11.java
Normal file
@ -0,0 +1,39 @@
|
||||
package com.gamingmesh.jobs.nmsUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.block.BlockPistonRetractEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import com.gamingmesh.jobs.NMS;
|
||||
|
||||
public class v1_11 implements NMS {
|
||||
@Override
|
||||
public List<Block> getPistonRetractBlocks(BlockPistonRetractEvent event) {
|
||||
List<Block> blocks = new ArrayList<Block>();
|
||||
blocks.addAll(event.getBlocks());
|
||||
return blocks;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRealType(Entity entity) {
|
||||
return entity.getType().name();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getItemInMainHand(Player player) {
|
||||
return player.getInventory().getItemInMainHand();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Block getTargetBlock(Player player, int range) {
|
||||
return player.getTargetBlock((Set<Material>) null, range);
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
name: Jobs
|
||||
description: Jobs Plugin for the BukkitAPI
|
||||
main: com.gamingmesh.jobs.Jobs
|
||||
version: 3.6.2
|
||||
version: 3.6.3
|
||||
author: phrstbrn
|
||||
depend: [Vault]
|
||||
softdepend: [MythicMobs, McMMO]
|
||||
|
Loading…
Reference in New Issue
Block a user