mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-04 14:25:32 +02:00
Make plugins window style configurable between default and the old scrollable style
This commit is contained in:
parent
f3b1971e2b
commit
3b480db9f6
5
sqlupdates/2_0_0-RC-1_TO_2_0_0-RC-2.sql
Normal file
5
sqlupdates/2_0_0-RC-1_TO_2_0_0-RC-2.sql
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#DATABASE UPDATE: 2.0.0 RC-2 -> 2.0.0 RC-3
|
||||||
|
|
||||||
|
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('commands.plugins.oldstyle', '0');
|
||||||
|
|
||||||
|
#END DATABASE UPDATE: 2.0.0 RC-2 -> 2.0.0 RC-3
|
|
@ -2,9 +2,11 @@ package com.eu.habbo.habbohotel.commands;
|
||||||
|
|
||||||
import com.eu.habbo.Emulator;
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||||
import com.eu.habbo.messages.outgoing.generic.alerts.GenericAlertComposer;
|
import com.eu.habbo.messages.outgoing.generic.alerts.MessagesForYouComposer;
|
||||||
import com.eu.habbo.plugin.HabboPlugin;
|
import com.eu.habbo.plugin.HabboPlugin;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
public class PluginsCommand extends Command
|
public class PluginsCommand extends Command
|
||||||
{
|
{
|
||||||
public PluginsCommand()
|
public PluginsCommand()
|
||||||
|
@ -22,7 +24,14 @@ public class PluginsCommand extends Command
|
||||||
message.append("\r").append(plugin.configuration.name).append(" By ").append(plugin.configuration.author);
|
message.append("\r").append(plugin.configuration.name).append(" By ").append(plugin.configuration.author);
|
||||||
}
|
}
|
||||||
|
|
||||||
gameClient.getHabbo().alert(message.toString());
|
|
||||||
|
if (Emulator.getConfig().getBoolean("commands.plugins.oldstyle"))
|
||||||
|
{
|
||||||
|
gameClient.sendResponse(new MessagesForYouComposer(Collections.singletonList(message.toString())));
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
gameClient.getHabbo().alert(message.toString());
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user