-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
86 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" output="bin/main" path="src/main/java"> | ||
<classpathentry kind="src" output="bin/main" path="src/main/resources"> | ||
<attributes> | ||
<attribute name="gradle_scope" value="main"/> | ||
<attribute name="gradle_used_by_scope" value="main,test"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" output="bin/main" path="src/main/resources"> | ||
<classpathentry kind="src" output="bin/main" path="src/main/java"> | ||
<attributes> | ||
<attribute name="gradle_scope" value="main"/> | ||
<attribute name="gradle_used_by_scope" value="main,test"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/> | ||
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/> | ||
<classpathentry kind="src" path="bin/generated-sources/annotations"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="bin/default"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
arguments=--init-script /home/jijon/.vscode-server/data/User/globalStorage/stripe.vscode-stripe/2.0.14/config_linux/org.eclipse.osgi/51/0/.cp/gradle/init/init.gradle --init-script /home/jijon/.vscode-server/data/User/globalStorage/stripe.vscode-stripe/2.0.14/config_linux/org.eclipse.osgi/51/0/.cp/gradle/protobuf/init.gradle | ||
arguments= | ||
auto.sync=false | ||
build.scans.enabled=false | ||
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) | ||
connection.project.dir= | ||
eclipse.preferences.version=1 | ||
gradle.user.home= | ||
java.home=/usr/lib/jvm/java-17-openjdk-amd64 | ||
java.home= | ||
jvm.arguments= | ||
offline.mode=false | ||
override.workspace.settings=true | ||
show.console.view=true | ||
show.executions.view=true | ||
override.workspace.settings=false | ||
show.console.view=false | ||
show.executions.view=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.apt.aptEnabled=true | ||
org.eclipse.jdt.apt.genSrcDir=bin/generated-sources/annotations | ||
org.eclipse.jdt.apt.genTestSrcDir=bin/generated-test-sources/annotations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.classpath.outputOverlappingAnotherSource=ignore | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 | ||
org.eclipse.jdt.core.compiler.compliance=17 | ||
org.eclipse.jdt.core.compiler.processAnnotations=enabled | ||
org.eclipse.jdt.core.compiler.source=17 |
Binary file not shown.
Binary file modified
BIN
+148 Bytes
(100%)
bin/main/fr/thegreensuits/viewing_party/listener/AsyncPlayerChatListener.class
Binary file not shown.
Binary file added
BIN
+1.44 KB
bin/main/fr/thegreensuits/viewing_party/listener/EntityDamageListener.class
Binary file not shown.
Binary file added
BIN
+1023 Bytes
bin/main/fr/thegreensuits/viewing_party/listener/PlayerInteractAtEntityListener.class
Binary file not shown.
Binary file modified
BIN
+471 Bytes
(130%)
bin/main/fr/thegreensuits/viewing_party/listener/PlayerJoinListener.class
Binary file not shown.
Binary file modified
BIN
+293 Bytes
(130%)
bin/main/fr/thegreensuits/viewing_party/listener/PlayerQuitListener.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/fr/thegreensuits/viewing_party/listener/EntityDamageListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package fr.thegreensuits.viewing_party.listener; | ||
|
||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.EventHandler; | ||
import org.bukkit.event.Listener; | ||
import org.bukkit.event.entity.EntityDamageEvent; | ||
|
||
public class EntityDamageListener implements Listener { | ||
@EventHandler | ||
public void onEntityDamage(EntityDamageEvent event) { | ||
if(event.getEntity() instanceof Player) { | ||
Player player = (Player) event.getEntity(); | ||
|
||
if(event.getCause() == EntityDamageEvent.DamageCause.VOID) | ||
//Teleport to spawn when the player is too low | ||
event.getEntity().teleport(event.getEntity().getWorld().getSpawnLocation()); | ||
|
||
if(!player.isOp()) { | ||
event.setCancelled(true); | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/fr/thegreensuits/viewing_party/listener/PlayerInteractAtEntityListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package fr.thegreensuits.viewing_party.listener; | ||
|
||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.EventHandler; | ||
import org.bukkit.event.Listener; | ||
import org.bukkit.event.player.PlayerInteractAtEntityEvent; | ||
|
||
public class PlayerInteractAtEntityListener implements Listener { | ||
@EventHandler | ||
public void onPlayerInteractAtEntity(PlayerInteractAtEntityEvent event) { | ||
Player player = event.getPlayer(); | ||
|
||
if(!player.isOp()) { | ||
event.setCancelled(true); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters