Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 4bda69a

Browse files
committed
Merge branch premium API v1.1.0
2 parents 66d7d0e + ac8e013 commit 4bda69a

File tree

3 files changed

+95
-4
lines changed

3 files changed

+95
-4
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* AsyncWorldEdit Premium is a commercial version of AsyncWorldEdit. This software
3+
* has been sublicensed by the software original author according to p7 of
4+
* AsyncWorldEdit license.
5+
*
6+
* AsyncWorldEdit Premium - donation version of AsyncWorldEdit, a performance
7+
* improvement plugin for Minecraft WorldEdit plugin.
8+
*
9+
* Copyright (c) 2015, SBPrime <https://github.com/SBPrime/>
10+
*
11+
* All rights reserved.
12+
*
13+
* 1. You may:
14+
* install and use AsyncWorldEdit in accordance with the Software documentation
15+
* and pursuant to the terms and conditions of this license
16+
* 2. You may not:
17+
* sell, redistribute, encumber, give, lend, rent, lease, sublicense, or otherwise
18+
* transfer Software, or any portions of Software, to anyone without the prior
19+
* written consent of Licensor
20+
* 3. The original author of the software is allowed to change the license
21+
* terms or the entire license of the software as he sees fit.
22+
* 4. The original author of the software is allowed to sublicense the software
23+
* or its parts using any license terms he sees fit.
24+
*
25+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
26+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
29+
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
32+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35+
*/
36+
package org.primesoft.asyncworldedit.api;
37+
38+
/**
39+
*
40+
* @author SBPrime
41+
*/
42+
public enum MessageSystem {
43+
44+
TALKATIVE("Talkative"),
45+
BAR("Bar"),
46+
CHAT("Chat");
47+
48+
private final String m_name;
49+
50+
public String getName() {
51+
return m_name;
52+
}
53+
54+
private MessageSystem(String name) {
55+
m_name = name;
56+
}
57+
}

src/org/primesoft/asyncworldedit/api/configuration/IPermissionGroup.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,24 @@ public interface IPermissionGroup {
9595
*/
9696
int getRendererTime();
9797

98+
/**
99+
* The minimum number of blocks to show the progress bar
100+
*
101+
* @return
102+
*/
103+
int getBarApiProgresMinBlocks();
104+
98105
/**
99106
* Use the bar api to display progress
100107
*
101108
* @return
102109
*/
103110
boolean isBarApiProgressEnabled();
104-
111+
105112
/**
106113
* Is the undo disabled
107-
* @return
114+
*
115+
* @return
108116
*/
109117
boolean isUndoDisabled();
110118

@@ -135,5 +143,5 @@ public interface IPermissionGroup {
135143
* @return
136144
*/
137145
boolean isTalkative();
138-
146+
139147
}

src/org/primesoft/asyncworldedit/api/playerManager/IPlayerEntry.java

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
import java.util.UUID;
4444
import org.bukkit.entity.Player;
45+
import org.primesoft.asyncworldedit.api.MessageSystem;
4546
import org.primesoft.asyncworldedit.api.configuration.IPermissionGroup;
4647
import org.primesoft.asyncworldedit.api.permissions.IPermission;
4748

@@ -92,7 +93,7 @@ public interface IPlayerEntry {
9293
* @return
9394
*/
9495
Object getWaitMutex();
95-
96+
9697
/**
9798
* Get the
9899
* @param permission
@@ -152,4 +153,29 @@ public interface IPlayerEntry {
152153
*/
153154
void update(Player player, IPermissionGroup permissionGroup);
154155

156+
/**
157+
* Update the messaging system
158+
* @param system
159+
* @param state
160+
*/
161+
void setMessaging(MessageSystem system, boolean state);
162+
163+
/**
164+
* Get the messaging system status
165+
* @param system
166+
* @return
167+
*/
168+
boolean getMessaging(MessageSystem system);
169+
170+
/**
171+
* Get the number of blocks rendered each run
172+
* @return
173+
*/
174+
int getRenderBlocks();
175+
176+
/**
177+
* Set the number of rendered blocks
178+
* @param b The new speed (null for default)
179+
*/
180+
void setRenderBlocks(Integer b);
155181
}

0 commit comments

Comments
 (0)