Skip to content

Commit 37448d3

Browse files
authored
Merge branch 'develop' into rt_add_reopen_editor
2 parents 850b1b2 + e3b4a4c commit 37448d3

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
path: target/*.jar
2828

2929
release:
30-
if: github.ref == 'refs/heads/master'
30+
if: github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'chore:')
3131
needs: build
3232
runs-on: ubuntu-latest
3333
environment: env

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
# AutoCommands 🤖
22

3-
A minecraft (**java**) plugin that lets you **run repetitive tasks** with **delay** and a lot more ! Configurable by UI or chat ! learn more with the **links 🔗** bellow !
3+
## Preview
44

5-
Already **990 downloads ⏬**, **THANK YOU** !
5+
<img alt="Discord" src="https://img.shields.io/discord/944007562938957824?style=for-the-badge&logo=discord&link=https%3A%2F%2Fdiscord.gg%2FsV2KxsGJHN">
6+
<img alt="GitHub commits since latest release" src="https://img.shields.io/github/commits-since/lumi-git/autocommands/latest?style=for-the-badge">
7+
<img alt="bStats Servers" src="https://img.shields.io/bstats/servers/21737?style=for-the-badge&label=number%20of%20servers%20currently%20using%20ACMD">
8+
<img alt="bStats Servers" src="https://img.shields.io/bstats/players/21737?style=for-the-badge&label=number%20of%20players%20currently%20using%20ACMD">
9+
10+
11+
A minecraft (java) spigot plugin that let's you **run repetitive tasks** with **delay** and a lot more ! Configurable by UI and chat ! learn more with the **links 🔗** bellow !
612

713
## Spigot 🔗
814
>Download the ressource via spigot page :
915
https://www.spigotmc.org/resources/acmd-%E2%8F%B0-%E2%8F%B3-autocommands-1-13-1-20-4.100090/
16+
Don't hesitate to leave a review if you liked it !
1017

1118
## bStat 🔗
12-
19+
This plugin use bStat to better understand server administrator usage. You can disable it in your server options.
1320
>https://bstats.org/plugin/bukkit/ACMD/21737
1421
15-
## wiki 🔗
16-
22+
## Wiki 🔗
23+
Please read it first before open an issue. 🪲
1724
>https://github.com/AutoPluginsDev/Documentation/wiki/AutoCommands-%5BACMD%5D
1825
19-
## release workflow
26+
## Release workflow rules
2027

2128
1. First go to environment "env" and change the variable to the targeted tag/version
2229

@@ -28,4 +35,3 @@ https://www.spigotmc.org/resources/acmd-%E2%8F%B0-%E2%8F%B3-autocommands-1-13-1-
2835

2936

3037

31-

src/main/java/fr/lumi/Commandes/CommandRunnerCommand.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
196196
if (acmd == null) return true;
197197

198198
if (args.length == 2) {
199-
plugin.getAcmdGUIEditor().openACMDEditor((Player) sender, plugin.getcommandList().indexOf(acmd));
199+
200+
plugin.getModificationLock().lock(((Player)player).getUniqueId().toString());
201+
plugin.getAcmdGUIEditor().openACMDEditor((Player) sender, acmd, plugin.getcommandList().indexOf(acmd));
200202
return true;
201203
}
202204

src/main/java/fr/lumi/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public String callGithubForTag() {
166166
StringBuilder response = new StringBuilder();
167167
try {
168168
// Make HTTP GET request
169-
URL url = new URL("https://api.github.com/repos/lumi-git/AutoCommands/tags");
169+
URL url = new URL("https://api.github.com/repos/AutoPluginsDev/AutoCommands/tags");
170170
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
171171
connection.setRequestMethod("GET");
172172
connection.setRequestProperty("Accept", "application/json");

src/main/java/fr/lumi/Util/CommandEditor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,20 @@ public void GuiClickEvent(InventoryClickEvent e) {
174174
case 3:
175175
waitForChat = "period";
176176

177-
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the period in the chat in tick (format : integer , type exit to exit) :"));
177+
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the period in the chat in tick (format : integer, type exit to exit) :"));
178178
closeInventory(p);
179179
break;
180180

181181
case 4:
182182
waitForChat = "delay";
183183

184-
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the delay in the chat in tick (format : integer , type exit to exit) :"));
184+
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the delay in the chat in tick (format : integer, type exit to exit) :"));
185185
closeInventory(p);
186186
break;
187187
case 5:
188188
waitForChat = "hour";
189189

190-
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the hour in the chat (format : 18H02 , type exit to exit) :"));
190+
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the hour in the chat (example : 18H02, type exit to exit) :"));
191191
closeInventory(p);
192192
break;
193193
case 6:
@@ -205,7 +205,7 @@ public void GuiClickEvent(InventoryClickEvent e) {
205205
case 8:
206206
waitForChat = "message";
207207

208-
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the hour in the chat (format : & usables , type exit to exit) :"));
208+
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the hour in the chat (tips : use & + color , type \"exit\" to exit) :"));
209209
closeInventory(p);
210210
break;
211211
case 9:

0 commit comments

Comments
 (0)