Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jgitver #1

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
bc726c5
deploy to kwadratowa-games-repository; disabled mc1.18 compilation
Cubixmeister Jan 8, 2022
8392679
Armor hiding should not hide items in hand
makindotcc Mar 3, 2022
b5cb8d6
Do not drop bed on destroy.....
makindotcc Apr 4, 2022
c01dfe9
fixed PlayerGoods not restoring (#352)
ajgeiss0702 Feb 20, 2022
a1bde03
Fix TNT particles in the lobby (#378)
reussy Feb 20, 2022
4f0c7d5
fix swap issue (#357) (#366)
MherZaqaryan Feb 20, 2022
f675a74
Revert "fix swap issue (#357) (#366)" (#399)
andrei1058 Feb 20, 2022
bf93a5e
added %bw1058_player_status% (#350)
ajgeiss0702 Feb 20, 2022
be0b521
Fix spectator GUI using {prefix} instead of {vPrefix} (#345)
ajgeiss0702 Feb 20, 2022
0e036b2
Make default bug report use comments (#348)
ajgeiss0702 Feb 20, 2022
e326545
Fix vault when no chat/eco provider exists (#344)
ajgeiss0702 Feb 20, 2022
ba653d5
Fix xp number formatting (#343)
ajgeiss0702 Feb 20, 2022
62180a2
Add sound on kill (#335)
ajgeiss0702 Feb 20, 2022
a0acbc9
Parties and Friends (#327)
JT122406 Feb 20, 2022
7e5bb7b
remove death message in lobby (MULTIARENA only) and in game (#280)
nicegamer7 Feb 20, 2022
40397fc
PAF Improvements (#421)
JT122406 Mar 1, 2022
636d602
Parties by alessio improvements (#422)
JT122406 Mar 2, 2022
d5d6e4b
Bed No longer drops on break (#423)
JT122406 Mar 2, 2022
ae118c9
Fix initializing no economy instead of no chat (#419)
ajgeiss0702 Mar 2, 2022
27cad5f
Allow players to extinguish fire (#418)
ajgeiss0702 Mar 2, 2022
023c151
made generator protection radius configurable (#412)
ajgeiss0702 Mar 2, 2022
1a1c4a6
Implements a sound for arena players when the ender pearl is hit on a…
reussy Mar 2, 2022
9d613a8
Add Turkish language suppport. (#342)
kuzeeeyk Mar 2, 2022
bcbea5e
Added Indonesia Languange (#400)
ArachneXD Mar 2, 2022
e9be01f
Portuguese Language (#369)
DeusDrizzyy Mar 2, 2022
c3326b6
Create deploy
andrei1058 Mar 11, 2022
36be94d
Deploy to maven and javadocs repo and polymart (#447)
andrei1058 Mar 23, 2022
24b57ba
Some PAFBungeecord Fixes (#442)
JT122406 Mar 23, 2022
da84ae9
Register Indonesia Languange on start up (#452)
ArachneXD Mar 23, 2022
0b10293
fix env var passing
andrei1058 Mar 23, 2022
fef0e14
Enhance levelling system (#448)
Xxyuri2005xX Mar 23, 2022
5c3a7ef
pliz
andrei1058 Mar 23, 2022
47cbcb6
oh gosh
andrei1058 Mar 23, 2022
bc2081c
workflow update
andrei1058 Mar 26, 2022
5017580
Update readme to link to wiki for addons/setups (#462)
ajgeiss0702 Mar 27, 2022
5d1129c
band-aid fix for ConcurrentModificationException on disable (#460)
ajgeiss0702 Mar 27, 2022
b2eb7df
[enhancement] Fix Invisibility Potions on 1.8 and some cosmetic chang…
Marcelektro Mar 27, 2022
8b3e2de
Implement command for set max build Y (#428)
reussy Mar 27, 2022
e58b284
TeamEliminatedEvent (#465)
JT122406 Mar 27, 2022
e6e5293
Merge branch 'master' of https://github.com/andrei1058/BedWars1058
Cubixmeister Apr 30, 2022
98e04be
depend on spigot 1.16.5
Cubixmeister Apr 30, 2022
674502e
jgitver
artur9010 May 14, 2022
56cdafd
maven-shade-plugin
artur9010 May 29, 2022
5752234
pluginRepositories
artur9010 May 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>fr.brouillard.oss</groupId>
<artifactId>jgitver-maven-plugin</artifactId>
<version>1.8.0</version>
</extension>
</extensions>
8 changes: 8 additions & 0 deletions bedwars-api/.mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>fr.brouillard.oss</groupId>
<artifactId>jgitver-maven-plugin</artifactId>
<version>1.8.0</version>
</extension>
</extensions>
2 changes: 1 addition & 1 deletion bedwars-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>BedWars1058</artifactId>
<groupId>com.andrei1058.bedwars</groupId>
<version>22.3-SNAPSHOT</version>
<version>${jgitver.calcuated_version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bedwars-api</artifactId>
Expand Down
8 changes: 8 additions & 0 deletions bedwars-plugin/.mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>fr.brouillard.oss</groupId>
<artifactId>jgitver-maven-plugin</artifactId>
<version>1.8.0</version>
</extension>
</extensions>
49 changes: 30 additions & 19 deletions bedwars-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@
<parent>
<artifactId>BedWars1058</artifactId>
<groupId>com.andrei1058.bedwars</groupId>
<version>22.3-SNAPSHOT</version>
<version>${jgitver.calcuated_version}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bedwars-plugin</artifactId>
<packaging>jar</packaging>
<version>${parent.version}</version>

<pluginRepositories>
<pluginRepository>
<!-- This is a temporary reference as the Maven Shade plugin
that supports Java 17 is not released yet -->
<id>maven-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</pluginRepository>
</pluginRepositories>

<repositories>
<repository>
<id>simonsators-repo</id>
Expand Down Expand Up @@ -62,10 +53,10 @@
<id>alessioDP-releases</id>
<url>https://repo.alessiodp.com/releases/</url>
</repository>
<repository>
<!-- <repository>
<id>andrei1058-releases</id>
<url>https://repo.andrei1058.com/releases/</url>
</repository>
</repository> -->
</repositories>

<dependencies>
Expand Down Expand Up @@ -197,11 +188,11 @@
<artifactId>versionsupport_v1_17_R1</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.andrei1058.bedwars</groupId>
<artifactId>versionsupport_v1_18_R1</artifactId>
<version>${project.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.andrei1058.bedwars</groupId>-->
<!-- <artifactId>versionsupport_v1_18_R1</artifactId>-->
<!-- <version>${project.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>com.andrei1058.bedwars</groupId>
<artifactId>versionsupport-common</artifactId>
Expand All @@ -210,7 +201,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<version>1.16.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -282,7 +273,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.1-SNAPSHOT</version>
<version>3.3.0</version>
<configuration>
<relocations>
<relocation>
Expand Down Expand Up @@ -322,6 +313,26 @@
<skip>true</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>kwadratowa-games-repository</serverId>
<nexusUrl>https://nexus.kwadratowa.games</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ public void onBlockBreak(BlockBreakEvent e) {
}
} else {
e.setCancelled(false);
e.setDropItems(false);
t.setBedDestroyed(true);
a.addPlayerBedDestroyed(p);
PlayerBedBreakEvent breakEvent;
Expand Down
2 changes: 1 addition & 1 deletion bedwars-plugin/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: BedWars1058
api-version: '1.13'
version: ${project.version}
author: andrei1058
author: andrei10581
description: BedWars minigame by andrei1058
main: com.andrei1058.bedwars.BedWars
softdepend: [Vault,PlaceholderAPI,Citizens,Parties,SlimeWorldManager,VipFeatures,Enhanced-SlimeWorldManager,PartyAndFriends,Spigot-Party-API-PAF]
Expand Down
13 changes: 5 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.andrei1058.bedwars</groupId>
<artifactId>BedWars1058</artifactId>
<packaging>pom</packaging>
<version>22.3-SNAPSHOT</version>
<version>${jgitver.calcuated_version}</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -114,17 +114,14 @@
<module>versionsupport_1_16_R2</module>
<module>versionsupport_v1_16_R3</module>
<module>versionsupport_v1_17_R1</module>
<module>versionsupport_v1_18_R1</module>
<!-- <module>versionsupport_v1_18_R1</module> -->
</modules>

<distributionManagement>
<repository>
<id>ftp-repo</id>
<url>ftp://andrei1058.dev/releases</url>
<id>kwadratowa-games-repository</id>
<url>https://nexus.kwadratowa.games/repository/kwadratowa-games/</url>
</repository>
<snapshotRepository>
<id>ftp-repo</id>
<url>ftp://andrei1058.dev/snapshots</url>
</snapshotRepository>
</distributionManagement>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -279,41 +279,24 @@ public void voidKill(Player p) {
@Override
public void hideArmor(Player victim, Player receiver) {
List<Pair<EnumItemSlot, ItemStack>> items = new ArrayList<>();
List<Pair<EnumItemSlot, ItemStack>> hands = new ArrayList<>();
hands.add(new Pair<>(EnumItemSlot.MAINHAND, new ItemStack(net.minecraft.server.v1_16_R3.Item.getById(0))));
hands.add(new Pair<>(EnumItemSlot.OFFHAND, new ItemStack(net.minecraft.server.v1_16_R3.Item.getById(0))));

items.add(new Pair<>(EnumItemSlot.HEAD, new ItemStack(net.minecraft.server.v1_16_R3.Item.getById(0))));
items.add(new Pair<>(EnumItemSlot.CHEST, new ItemStack(net.minecraft.server.v1_16_R3.Item.getById(0))));
items.add(new Pair<>(EnumItemSlot.LEGS, new ItemStack(net.minecraft.server.v1_16_R3.Item.getById(0))));
items.add(new Pair<>(EnumItemSlot.FEET, new ItemStack(net.minecraft.server.v1_16_R3.Item.getById(0))));
PacketPlayOutEntityEquipment packet1 = new PacketPlayOutEntityEquipment(victim.getEntityId(), items);
PacketPlayOutEntityEquipment packet2 = new PacketPlayOutEntityEquipment(victim.getEntityId(), hands);
EntityPlayer pc = ((CraftPlayer) receiver).getHandle();
if (victim != receiver) {
pc.playerConnection.sendPacket(packet2);
}
pc.playerConnection.sendPacket(packet1);
}

@Override
public void showArmor(Player victim, Player receiver) {
List<Pair<EnumItemSlot, ItemStack>> items = new ArrayList<>();
List<Pair<EnumItemSlot, ItemStack>> hands = new ArrayList<>();

hands.add(new Pair<>(EnumItemSlot.MAINHAND, CraftItemStack.asNMSCopy(victim.getInventory().getItemInMainHand())));
hands.add(new Pair<>(EnumItemSlot.OFFHAND, CraftItemStack.asNMSCopy(victim.getInventory().getItemInOffHand())));

items.add(new Pair<>(EnumItemSlot.HEAD, CraftItemStack.asNMSCopy(victim.getInventory().getHelmet())));
items.add(new Pair<>(EnumItemSlot.CHEST, CraftItemStack.asNMSCopy(victim.getInventory().getChestplate())));
items.add(new Pair<>(EnumItemSlot.LEGS, CraftItemStack.asNMSCopy(victim.getInventory().getLeggings())));
items.add(new Pair<>(EnumItemSlot.FEET, CraftItemStack.asNMSCopy(victim.getInventory().getBoots())));
PacketPlayOutEntityEquipment packet1 = new PacketPlayOutEntityEquipment(victim.getEntityId(), items);
PacketPlayOutEntityEquipment packet2 = new PacketPlayOutEntityEquipment(victim.getEntityId(), hands);
EntityPlayer pc = ((CraftPlayer) receiver).getHandle();
if (victim != receiver) {
pc.playerConnection.sendPacket(packet2);
}
pc.playerConnection.sendPacket(packet1);
}

Expand Down Expand Up @@ -666,8 +649,9 @@ public Fireball setFireballDirection(Fireball fireball, Vector vector) {
@Override
public void playRedStoneDot(Player player) {
Color color = Color.RED;
PacketPlayOutWorldParticles particlePacket = new PacketPlayOutWorldParticles(new ParticleParamRedstone((float) color.getRed(), (float) color.getBlue(), (float) color.getGreen(), (float) 1),
true, (float) player.getLocation().getX(), (float) (player.getLocation().getY() + 2.6), (float) player.getLocation().getZ(), 0, 0, 0, 0, 0);
PacketPlayOutWorldParticles particlePacket = new PacketPlayOutWorldParticles(
new ParticleParamRedstone((float) color.getRed(), (float) color.getGreen(), (float) color.getBlue(), (float) 1),
true, player.getLocation().getX(), player.getLocation().getY() + 2.2, player.getLocation().getZ(), 0, 0, 0, 0, 1);
for (Player inWorld : player.getWorld().getPlayers()) {
if (inWorld.equals(player)) continue;
((CraftPlayer) inWorld).getHandle().playerConnection.sendPacket(particlePacket);
Expand Down